kubernetes-entrypoint/logger/logger.go
2017-01-18 10:53:34 +01:00

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)
}