Documentation
¶
Overview ¶
Package log provides a simple interface to handle logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
// Debug logging: Every details
Debug(event string, keyvals ...interface{})
// Info logging: Core events
Info(event string, keyvals ...interface{})
// Warning logging: Anything out of the ordinary but non-life threatening
Warn(event string, keyvals ...interface{})
// Error logging: Major issue
Error(event string, keyvals ...interface{})
// Panic logging: We want to crash
Panic(event string, keyvals ...interface{})
// Context extending interface
With(keyvals ...interface{}) Logger
}
Logger interface
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gokit defines a simple implementation of the logging interface
|
Package gokit defines a simple implementation of the logging interface |
|
Package level allows to do level filtering on go-log side
|
Package level allows to do level filtering on go-log side |
|
Package log15 defines a simple implementation of the logging interface
|
Package log15 defines a simple implementation of the logging interface |
|
Package logrus provides a logger based on logrus
|
Package logrus provides a logger based on logrus |
|
Package logtest provides testing code for loggers
|
Package logtest provides testing code for loggers |
|
Package noop provides a No-Operation logger
|
Package noop provides a No-Operation logger |
|
Package slog defines a simple implementation of the logging interface
|
Package slog defines a simple implementation of the logging interface |
|
Package testing provides an adapter for the go test testing logger
|
Package testing provides an adapter for the go test testing logger |
|
Package zap defines a simple implementation of the logging interface
|
Package zap defines a simple implementation of the logging interface |
|
Package zerolog defines a simple implementation of the logging interface
|
Package zerolog defines a simple implementation of the logging interface |
Click to show internal directories.
Click to hide internal directories.