2019-06-26 02:14:38 +02:00
|
|
|
import log
|
|
|
|
|
|
|
|
fn main(){
|
2019-07-24 17:50:29 +02:00
|
|
|
mut l := log.Log{level:log.INFO, 'terminal'}
|
2019-06-26 02:14:38 +02: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')
|
2019-06-27 12:27:46 +02:00
|
|
|
}
|