|
|
@ -17,12 +17,6 @@ const ( |
|
|
|
TRACE |
|
|
|
TRACE |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
LoggerCreated int = iota // return code if the logger creates a new logger
|
|
|
|
|
|
|
|
LoggerExists // retun cde in the case that there is already a logger
|
|
|
|
|
|
|
|
ErrorCreatingLogger // in case of error creating the logger
|
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var logLevelStringMap = map[string]int{ |
|
|
|
var logLevelStringMap = map[string]int{ |
|
|
|
"error": ERROR, |
|
|
|
"error": ERROR, |
|
|
|
"warning": WARNING, |
|
|
|
"warning": WARNING, |
|
|
@ -49,7 +43,7 @@ var ( |
|
|
|
Warning logStream |
|
|
|
Warning logStream |
|
|
|
Error logStream |
|
|
|
Error logStream |
|
|
|
DefaultLogger logStream |
|
|
|
DefaultLogger logStream |
|
|
|
LogLevel int |
|
|
|
LogLevel int = WARNING |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
func (l *logStream) Printf(format string, a ...interface{}) { |
|
|
|
func (l *logStream) Printf(format string, a ...interface{}) { |
|
|
|