Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExitFn func(int) = os.Exit
Functions ¶
func WithEnrichment ¶
func WithEnrichment(d EnrichmentFunc)
Types ¶
type LogEntry ¶
type LogEntry interface {
Debug(s string)
Debugf(format string, args ...any)
Error(err error)
Errorf(format string, args ...any)
Fatal(s string)
Fatalf(format string, args ...any)
FatalError(err error)
Info(s string)
Infof(format string, args ...any)
Trace(s string)
Tracef(format string, args ...any)
Warn(s string)
Warnf(format string, args ...any)
WithContext(context.Context) LogEntry
WithField(name string, value any) LogEntry
}
type Logger ¶
func UsingStdLog ¶
func UsingStdLog() Logger
type LogrusAdapter ¶
func (*LogrusAdapter) Emit ¶
func (log *LogrusAdapter) Emit(level Level, s string)
func (*LogrusAdapter) NewEntry ¶
func (log *LogrusAdapter) NewEntry() Adapter
type NulAdapter ¶
type NulAdapter struct{}
func (*NulAdapter) Emit ¶
func (*NulAdapter) Emit(Level, string)
func (*NulAdapter) NewEntry ¶
func (nul *NulAdapter) NewEntry() Adapter
type StdLogAdapter ¶
type StdLogAdapter struct {
// contains filtered or unexported fields
}
func (*StdLogAdapter) Emit ¶
func (a *StdLogAdapter) Emit(level Level, s string)
func (*StdLogAdapter) NewEntry ¶
func (log *StdLogAdapter) NewEntry() Adapter
Click to show internal directories.
Click to hide internal directories.