a090770b73
I know this is a huge commit, but I can't be bothered to check this in part by part.
16 lines
292 B
Go
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
|
|
}
|