commento/api/utils_logging.go
Adhityaa a090770b73 api: Add go files
I know this is a huge commit, but I can't be bothered to check
this in part by part.
2018-05-27 23:40:46 +05:30

16 lines
292 B
Go

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