commento/api/utils_logging.go
2018-07-24 12:12:03 +05:30

16 lines
292 B
Go

package main
import (
"github.com/op/go-logging"
)
var logger *logging.Logger
func loggerCreate() error {
format := logging.MustStringFormatter("[%{level}] %{shortfile} %{shortfunc}(): %{message}")
logging.SetFormatter(format)
logger = logging.MustGetLogger("commento")
return nil
}