You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
333 B
Go

3 years ago
package icslog
import "sync"
type LogLevel struct {
currentLevel interface{}
m sync.Mutex
}
func (l *LogLevel) SetLogLevel(level interface{}) {
l.m.Lock()
defer l.m.Unlock()
l.currentLevel = level
}
func (l *LogLevel) GetLogLevel() (level interface{}) {
l.m.Lock()
defer l.m.Unlock()
return l.currentLevel
}