1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/log.v

13 lines
220 B
Go
Raw Normal View History

2019-06-26 03:14:38 +03:00
import log
fn main(){
2019-07-24 18:59:54 +03:00
mut l := log.Log{log.INFO, 'terminal'}
2019-06-26 03:14:38 +03:00
l.info('info')
l.warn('warn')
l.error('error')
l.debug('no debug')
l.set_level(log.DEBUG)
l.debug('debug')
l.fatal('fatal')
}