Beispiel #1
0
func newLogger() *logging.Logger {
	format := "%25s [%s] %8s: %s\n time,name,levelname,message"
	timeFormat := time.RFC3339
	level := logging.GetLevelValue(`INFO`)
	logger, _ := logging.WriterLogger("lazlo", level, format, timeFormat, os.Stdout, true)
	return logger
}
Beispiel #2
0
func newLogger() *logging.Logger {
	format := "%25s [%s] %8s: %s\n time,name,levelname,message"
	timeFormat := time.RFC3339
	levelStr := strings.ToUpper(Config.LogLevel)
	level := logging.GetLevelValue(levelStr)
	logger, _ := logging.WriterLogger("hal", level, format, timeFormat, os.Stdout, true)
	return logger
}