log: make const/struct public

pull/2486/head
ytakahashi 2019-10-29 00:53:02 +09:00 committed by Alexander Medvednikov
parent ed445860eb
commit 6a609cb046
1 changed files with 2 additions and 3 deletions

View File

@ -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
}