v/vlib/log/logger_interface.v
2023-08-31 06:44:11 +03:00

15 lines
255 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)
free()
}