2019-06-26 03:14:38 +03:00
|
|
|
import log
|
|
|
|
|
2019-11-25 07:50:59 +03:00
|
|
|
fn main() {
|
|
|
|
mut l := log.Log { log.LogLevel.info, 'info', true }
|
|
|
|
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 13:27:46 +03:00
|
|
|
}
|