Add a logger interface to the std modules

pull/1499/head^2
Cody Ley-Han 2019-08-06 22:44:43 -07:00 committed by Alexander Medvednikov
parent d072178cef
commit 06b8bd9382
1 changed files with 11 additions and 3 deletions

View File

@ -12,6 +12,14 @@ const (
DEBUG = 5
)
interface Logger {
fatal(s string)
error(s string)
warn(s string)
info(s string)
debug(s string)
}
struct Log{
mut:
level int