Documentation ¶
Index ¶
- type BaseLogger
- type ChainedLogger
- func (logger *ChainedLogger) Debug(msg string, args ...interface{})
- func (logger *ChainedLogger) Error(msg string, args ...interface{})
- func (logger *ChainedLogger) Fatal(msg string, args ...interface{})
- func (logger *ChainedLogger) Info(msg string, args ...interface{})
- func (logger *ChainedLogger) IsEnabled(logLevel LogLevel) bool
- func (logger *ChainedLogger) Warning(msg string, args ...interface{})
- type LogLevel
- type Logger
- type LoggerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseLogger ¶
func NewConsoleLogger ¶
func NewConsoleLogger(options LoggerOptions) BaseLogger
type ChainedLogger ¶
type ChainedLogger struct {
// contains filtered or unexported fields
}
func (*ChainedLogger) Debug ¶
func (logger *ChainedLogger) Debug(msg string, args ...interface{})
func (*ChainedLogger) Error ¶
func (logger *ChainedLogger) Error(msg string, args ...interface{})
func (*ChainedLogger) Fatal ¶
func (logger *ChainedLogger) Fatal(msg string, args ...interface{})
func (*ChainedLogger) Info ¶
func (logger *ChainedLogger) Info(msg string, args ...interface{})
func (*ChainedLogger) IsEnabled ¶
func (logger *ChainedLogger) IsEnabled(logLevel LogLevel) bool
func (*ChainedLogger) Warning ¶
func (logger *ChainedLogger) Warning(msg string, args ...interface{})
type Logger ¶
type Logger interface { Debug(msg string, args ...interface{}) Info(msg string, args ...interface{}) Warning(msg string, args ...interface{}) Error(msg string, args ...interface{}) Fatal(msg string, args ...interface{}) }
func NewLoggerWrapper ¶
func NewLoggerWrapper(loggers []BaseLogger) Logger
type LoggerOptions ¶
Click to show internal directories.
Click to hide internal directories.