e072c1d986
Simple refactor
22 lines
438 B
Go
22 lines
438 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)
|
|
}
|