Documentation
¶
Index ¶
- Constants
- type Fields
- type Logger
- type NoopLogger
- func (l *NoopLogger) Debug(msg string, fields ...Fields)
- func (l *NoopLogger) Error(err error, msg string, fields ...Fields)
- func (l *NoopLogger) Info(msg string, fields ...Fields)
- func (l *NoopLogger) IsTraceEnabled() bool
- func (l *NoopLogger) Panic(msg string, fields ...Fields)
- func (l *NoopLogger) Trace(msg string, fields ...Fields)
- func (l *NoopLogger) Warn(err error, msg string, fields ...Fields)
- func (l *NoopLogger) WithFields(fields Fields) Logger
Constants ¶
View Source
const ModuleField = "module"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Trace(msg string, fields ...Fields)
Debug(msg string, fields ...Fields)
Info(msg string, fields ...Fields)
Warn(err error, msg string, fields ...Fields)
Error(err error, msg string, fields ...Fields)
Panic(msg string, fields ...Fields)
WithFields(fields Fields) Logger
IsTraceEnabled() bool
}
type NoopLogger ¶
type NoopLogger struct{}
func NewNoopLogger ¶
func NewNoopLogger() *NoopLogger
func (*NoopLogger) Debug ¶
func (l *NoopLogger) Debug(msg string, fields ...Fields)
func (*NoopLogger) Info ¶
func (l *NoopLogger) Info(msg string, fields ...Fields)
func (*NoopLogger) IsTraceEnabled ¶ added in v0.8.9
func (l *NoopLogger) IsTraceEnabled() bool
func (*NoopLogger) Panic ¶
func (l *NoopLogger) Panic(msg string, fields ...Fields)
func (*NoopLogger) Trace ¶
func (l *NoopLogger) Trace(msg string, fields ...Fields)
func (*NoopLogger) WithFields ¶
func (l *NoopLogger) WithFields(fields Fields) Logger
Click to show internal directories.
Click to hide internal directories.