1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/log.v
Alexander Medvednikov 505f784047 fix log example
2019-07-24 17:59:54 +02:00

13 lines
220 B
V

import log
fn main(){
mut l := log.Log{log.INFO, 'terminal'}
l.info('info')
l.warn('warn')
l.error('error')
l.debug('no debug')
l.set_level(log.DEBUG)
l.debug('debug')
l.fatal('fatal')
}