v/examples/log.v

13 lines
214 B
Go
Raw Normal View History

2019-06-26 02:14:38 +02:00
import log
fn main(){
mut l := log.Log{level:log.INFO}
l.info('info')
l.warn('warn')
l.error('error')
l.debug('no debug')
l.set_level(log.DEBUG)
l.debug('debug')
l.fatal('fatal')
}