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:

committed by
Alexander Medvednikov

parent
d1a1f74d33
commit
9ac653c3e3
12
examples/log.v
Normal file
12
examples/log.v
Normal 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')
|
||||
}
|
Reference in New Issue
Block a user