Documentation
¶
Index ¶
Constants ¶
View Source
const ( StdLoggerType = "std" LogrusLoggerType = "logrus" ZapLoggerType = "zap" CharmLoggerType = "charm" )
Logger Types
View Source
const ( TextFormat = "text" JSONFormat = "json" )
Logger Formats
View Source
const ( DebugLevel = "debug" InfoLevel = "info" WarnLevel = "warn" ErrorLevel = "error" FatalLevel = "fatal" )
Logger Levels
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructuredLogger ¶
type StructuredLogger interface {
Debug(msg string, keysAndValues ...interface{})
Info(msg string, keysAndValues ...interface{})
Warn(msg string, keysAndValues ...interface{})
Error(msg string, keysAndValues ...interface{})
Fatal(msg string, keysAndValues ...interface{})
SetFormat(format string)
SetLevel(level string)
}
StructuredLogger is a generic interface for logging with different loggers.
Click to show internal directories.
Click to hide internal directories.