log: allow file logging

This commit is contained in:
yep84 2019-07-24 17:50:29 +02:00 committed by Alexander Medvednikov
parent 049d78a78d
commit 94a599d630
2 changed files with 51 additions and 10 deletions

View file

@ -1,7 +1,7 @@
import log
fn main(){
mut l := log.Log{level:log.INFO}
mut l := log.Log{level:log.INFO, 'terminal'}
l.info('info')
l.warn('warn')
l.error('error')