mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
12 lines
220 B
V
12 lines
220 B
V
import log
|
|
|
|
fn main(){
|
|
mut l := log.Log{log.INFO, 'terminal'}
|
|
l.info('info')
|
|
l.warn('warn')
|
|
l.error('error')
|
|
l.debug('no debug')
|
|
l.set_level(log.DEBUG)
|
|
l.debug('debug')
|
|
l.fatal('fatal')
|
|
}
|