fedilogue/log.go

23 lines
563 B
Go
Raw Normal View History

2021-01-17 04:17:15 +00:00
package main
import (
"log"
"os"
)
var (
logInfo *log.Logger
logWarn *log.Logger
logErr *log.Logger
logDebug *log.Logger
logFatal *log.Logger
)
func logInit() {
2021-02-01 00:24:35 +00:00
logInfo = log.New(os.Stdout, "INFO: ", log.Lmsgprefix|log.Ldate|log.Ltime)
logWarn = log.New(os.Stdout, "WARN: ", log.Lmsgprefix|log.Ldate|log.Ltime)
logErr = log.New(os.Stdout, "ERR: ", log.Lmsgprefix|log.Ldate|log.Ltime)
logFatal = log.New(os.Stdout, "FATAL: ", log.Lmsgprefix|log.Ldate|log.Ltime)
logDebug = log.New(os.Stdout, "DEBUG: ", log.Lmsgprefix|log.Ldate|log.Ltime)
2021-01-17 04:17:15 +00:00
}