gosuki/log.go

18 lines
224 B
Go
Raw Normal View History

2017-11-19 16:00:37 +00:00
package main
2018-11-09 17:25:50 +00:00
import "gomark/logging"
2017-11-19 16:00:37 +00:00
var (
2018-11-09 17:25:50 +00:00
// global logger
log = logging.GetLogger("")
fflog = logging.GetLogger("FF")
2017-11-19 16:00:37 +00:00
)
2018-11-09 17:25:50 +00:00
func init() {
2017-11-19 16:00:37 +00:00
if IsDebugging() {
2018-11-09 17:25:50 +00:00
logging.InitLogDebug()
2017-11-19 16:00:37 +00:00
} else {
2018-11-09 17:25:50 +00:00
logging.InitLog()
2017-11-19 16:00:37 +00:00
}
}