Documentation
¶
Index ¶
- type Logger
- type NoLog
- func (NoLog) Debug(string, ...interface{})
- func (NoLog) Error(string, ...interface{})
- func (NoLog) Fatal(string, ...interface{})
- func (NoLog) Info(string, ...interface{})
- func (NoLog) Warn(string, ...interface{})
- func (n NoLog) With(...interface{}) Logger
- func (n NoLog) WithContext(string, interface{}) Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Debug logs at debug level
Debug(msg string, args ...interface{})
// Info logs at info level
Info(msg string, args ...interface{})
// Warn logs at warn level
Warn(msg string, args ...interface{})
// Error logs at error level
Error(msg string, args ...interface{})
// Fatal logs at fatal level and exits
Fatal(msg string, args ...interface{})
// With returns a logger with additional context
With(args ...interface{}) Logger
// WithContext returns a logger with additional context
WithContext(key string, value interface{}) Logger
}
Logger defines the logging interface
Click to show internal directories.
Click to hide internal directories.