package main import ( log "github.com/cihub/seelog" ) func init() { SetLogLevel("debug") } // SetLogLevel determines the log level func SetLogLevel(level string) (err error) { // https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit // https://github.com/cihub/seelog/wiki/Log-levels appConfig := ` ` logger, err := log.LoggerFromConfigAsBytes([]byte(appConfig)) if err != nil { return } log.ReplaceLogger(logger) return }