diff --git a/vlib/log/log.v b/vlib/log/log.v index 7f0886003c..494610b28f 100644 --- a/vlib/log/log.v +++ b/vlib/log/log.v @@ -4,7 +4,7 @@ import os import time import term -const ( +pub const ( FATAL = 1 ERROR = 2 WARN = 3 @@ -20,13 +20,12 @@ interface Logger { debug(s string) } -struct Log{ +pub struct Log { mut: level int output string } - pub fn (l mut Log) set_level(level int){ l.level = level }