log: make const/struct public
parent
ed445860eb
commit
6a609cb046
|
@ -4,7 +4,7 @@ import os
|
||||||
import time
|
import time
|
||||||
import term
|
import term
|
||||||
|
|
||||||
const (
|
pub const (
|
||||||
FATAL = 1
|
FATAL = 1
|
||||||
ERROR = 2
|
ERROR = 2
|
||||||
WARN = 3
|
WARN = 3
|
||||||
|
@ -20,13 +20,12 @@ interface Logger {
|
||||||
debug(s string)
|
debug(s string)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Log{
|
pub struct Log {
|
||||||
mut:
|
mut:
|
||||||
level int
|
level int
|
||||||
output string
|
output string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn (l mut Log) set_level(level int){
|
pub fn (l mut Log) set_level(level int){
|
||||||
l.level = level
|
l.level = level
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue