mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
214 B
Go
13 lines
214 B
Go
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')
|
|
}
|