1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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')