Add a logger interface to the std modules
parent
d072178cef
commit
06b8bd9382
|
@ -9,9 +9,17 @@ const (
|
|||
ERROR = 2
|
||||
WARN = 3
|
||||
INFO = 4
|
||||
DEBUG =5
|
||||
DEBUG = 5
|
||||
)
|
||||
|
||||
interface Logger {
|
||||
fatal(s string)
|
||||
error(s string)
|
||||
warn(s string)
|
||||
info(s string)
|
||||
debug(s string)
|
||||
}
|
||||
|
||||
struct Log{
|
||||
mut:
|
||||
level int
|
||||
|
|
Loading…
Reference in New Issue