v/vlib/log/logger_interface.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()
}