bba1bd9d3d
This refactors a large part of the codebase using the suggestions from golangci-lint Change-Id: I2b7735086a64e50f3d5e0b30c225870bddc70935
22 lines
433 B
Go
22 lines
433 B
Go
package logger
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
var (
|
|
//Info logger
|
|
Info *log.Logger
|
|
//Error logger
|
|
Error *log.Logger
|
|
//Warning logger
|
|
Warning *log.Logger
|
|
)
|
|
|
|
func init() {
|
|
Info = log.New(os.Stdout, "Entrypoint INFO: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
Warning = log.New(os.Stdout, "Entrypoint WARNING: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
Error = log.New(os.Stderr, "Entrypoint ERROR: ", log.Ldate|log.Ltime|log.Lshortfile)
|
|
}
|