Documentation
¶
Index ¶
Constants ¶
View Source
const LoggerNameKey = "logger"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter of logrus logger for logger.Logger.
This adapter guarantees support of stock logger's levels.
func New ¶
New creates new logging adapter using provided logrus.Entry.
Note, that by the contract of logger.Logger, adapter should not perform level-filtering internally - it is done by logger.Logger itself.
func (*Adapter) WithName ¶
WithName returns a logger adapter with the given name attached to it. As logrus does not support logger names, this adds LoggerNameKey field.
Click to show internal directories.
Click to hide internal directories.