Documentation ¶
Index ¶
- type DevNullLogger
- type DevNullLoggingSystem
- type Entry
- type Level
- type Logger
- type LoggingSystem
- type LoggingSystemEntry
- type LogrusLoggingSystem
- type SystemLogger
- type TestingLoggingSystem
- type WatermillAdapter
- func (a WatermillAdapter) Debug(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) Error(msg string, err error, fields watermill.LogFields)
- func (a WatermillAdapter) Info(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) Trace(msg string, fields watermill.LogFields)
- func (a WatermillAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
- type ZerologLoggingSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DevNullLogger ¶
type DevNullLogger struct { }
func NewDevNullLogger ¶
func NewDevNullLogger() DevNullLogger
func (DevNullLogger) Debug ¶
func (d DevNullLogger) Debug() Entry
func (DevNullLogger) Error ¶
func (d DevNullLogger) Error() Entry
func (DevNullLogger) New ¶
func (d DevNullLogger) New(name string) Logger
func (DevNullLogger) Trace ¶
func (d DevNullLogger) Trace() Entry
func (DevNullLogger) WithError ¶
func (d DevNullLogger) WithError(err error) Logger
type DevNullLoggingSystem ¶
type DevNullLoggingSystem struct { }
func NewDevNullLoggingSystem ¶
func NewDevNullLoggingSystem() DevNullLoggingSystem
func (DevNullLoggingSystem) Debug ¶
func (d DevNullLoggingSystem) Debug() LoggingSystemEntry
func (DevNullLoggingSystem) EnabledLevel ¶
func (d DevNullLoggingSystem) EnabledLevel() Level
func (DevNullLoggingSystem) Error ¶
func (d DevNullLoggingSystem) Error() LoggingSystemEntry
func (DevNullLoggingSystem) Trace ¶
func (d DevNullLoggingSystem) Trace() LoggingSystemEntry
type Logger ¶
type Logger interface { New(name string) Logger WithError(err error) Logger WithField(key string, v any) Logger Error() Entry Debug() Entry Trace() Entry }
func NewSystemLogger ¶
func NewSystemLogger(logger LoggingSystem, name string) Logger
type LoggingSystem ¶
type LoggingSystem interface { EnabledLevel() Level Error() LoggingSystemEntry Debug() LoggingSystemEntry Trace() LoggingSystemEntry }
type LoggingSystemEntry ¶
type LoggingSystemEntry interface { WithField(key string, v any) LoggingSystemEntry Message(msg string) }
type LogrusLoggingSystem ¶
type LogrusLoggingSystem struct {
// contains filtered or unexported fields
}
func NewLogrusLoggingSystem ¶
func NewLogrusLoggingSystem(logger *logrus.Logger) LogrusLoggingSystem
func (LogrusLoggingSystem) Debug ¶
func (l LogrusLoggingSystem) Debug() LoggingSystemEntry
func (LogrusLoggingSystem) EnabledLevel ¶
func (t LogrusLoggingSystem) EnabledLevel() Level
func (LogrusLoggingSystem) Error ¶
func (l LogrusLoggingSystem) Error() LoggingSystemEntry
func (LogrusLoggingSystem) Trace ¶
func (l LogrusLoggingSystem) Trace() LoggingSystemEntry
type SystemLogger ¶
type SystemLogger struct {
// contains filtered or unexported fields
}
func (SystemLogger) Debug ¶
func (l SystemLogger) Debug() Entry
func (SystemLogger) Error ¶
func (l SystemLogger) Error() Entry
func (SystemLogger) New ¶
func (l SystemLogger) New(name string) Logger
func (SystemLogger) Trace ¶
func (l SystemLogger) Trace() Entry
func (SystemLogger) WithError ¶
func (l SystemLogger) WithError(err error) Logger
type TestingLoggingSystem ¶
type TestingLoggingSystem struct {
// contains filtered or unexported fields
}
func NewTestingLoggingSystem ¶
func NewTestingLoggingSystem(tb testing.TB) *TestingLoggingSystem
func (TestingLoggingSystem) Debug ¶
func (t TestingLoggingSystem) Debug() LoggingSystemEntry
func (TestingLoggingSystem) EnabledLevel ¶
func (t TestingLoggingSystem) EnabledLevel() Level
func (TestingLoggingSystem) Error ¶
func (t TestingLoggingSystem) Error() LoggingSystemEntry
func (TestingLoggingSystem) Trace ¶
func (t TestingLoggingSystem) Trace() LoggingSystemEntry
type WatermillAdapter ¶
type WatermillAdapter struct {
// contains filtered or unexported fields
}
func NewWatermillAdapter ¶
func NewWatermillAdapter(logger Logger) *WatermillAdapter
func (WatermillAdapter) Debug ¶
func (a WatermillAdapter) Debug(msg string, fields watermill.LogFields)
func (WatermillAdapter) Error ¶
func (a WatermillAdapter) Error(msg string, err error, fields watermill.LogFields)
func (WatermillAdapter) Info ¶
func (a WatermillAdapter) Info(msg string, fields watermill.LogFields)
func (WatermillAdapter) Trace ¶
func (a WatermillAdapter) Trace(msg string, fields watermill.LogFields)
func (WatermillAdapter) With ¶
func (a WatermillAdapter) With(fields watermill.LogFields) watermill.LoggerAdapter
type ZerologLoggingSystem ¶
type ZerologLoggingSystem struct {
// contains filtered or unexported fields
}
func NewZerologLoggingSystem ¶
func NewZerologLoggingSystem(logger zerolog.Logger) ZerologLoggingSystem
func (ZerologLoggingSystem) Debug ¶
func (l ZerologLoggingSystem) Debug() LoggingSystemEntry
func (ZerologLoggingSystem) EnabledLevel ¶
func (t ZerologLoggingSystem) EnabledLevel() Level
func (ZerologLoggingSystem) Error ¶
func (l ZerologLoggingSystem) Error() LoggingSystemEntry
func (ZerologLoggingSystem) Trace ¶
func (l ZerologLoggingSystem) Trace() LoggingSystemEntry
Click to show internal directories.
Click to hide internal directories.