mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
17 lines
292 B
V
17 lines
292 B
V
module log
|
|
|
|
// Logger is an interface that describes a generic Logger
|
|
pub interface Logger {
|
|
get_level() Level
|
|
mut:
|
|
fatal(s string)
|
|
error(s string)
|
|
warn(s string)
|
|
info(s string)
|
|
debug(s string)
|
|
// utility methods:
|
|
set_level(level Level)
|
|
set_always_flush(should_flush bool)
|
|
free()
|
|
}
|