Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultLogFormat = TextFormat
View Source
const DefaultLogOutput = StdErrOutput
View Source
const DefaultOutputParallelLimit = 5
View Source
const TimestampFormat = "2006-01-02T15:04:05.000000000Z07:00"
Variables ¶
This section is empty.
Functions ¶
func SetGlobalLevel ¶
Types ¶
type Logger ¶
type Logger interface {
//log a message at a trace level
Trace(msg string)
//log a formatted message at a trace level
Tracef(string, ...interface{})
//log a message at an info level
Info(msg string)
//log a formatted message at an info level
Infof(string, ...interface{})
//log a message at a debug level
Debug(msg string)
//log a formatted message at a debug level
Debugf(string, ...interface{})
//log a message at a warn level
Warn(msg string)
//log a formatted message at a warn level
Warnf(string, ...interface{})
//log a message at an error level
Error(msg string)
//log a formatted message at an error level
Errorf(string, ...interface{})
//log a message at a fatal level
Fatal(msg string)
//log a formatted message at a info level
Fatalf(string, ...interface{})
//log a message at a panic level
Panic(msg string)
//log a formatted message at a panic level
Panicf(string, ...interface{})
//update the logger level
UpdateLoggerLevel(level logcomm.LogLevel)
}
func CreateMainLogger ¶
func CreateModuleLogger ¶
func CreateSubModuleLogger ¶
Click to show internal directories.
Click to hide internal directories.