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

add log and rename colors

This commit is contained in:
wfhtqp
2019-06-26 08:14:38 +08:00
committed by Alexander Medvednikov
parent d1a1f74d33
commit 9ac653c3e3
3 changed files with 92 additions and 27 deletions

12
examples/log.v Normal file
View File

@@ -0,0 +1,12 @@
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')
}