Documentation
¶
Index ¶
- Constants
- Variables
- type Fields
- type Wrapper
- func (l Wrapper) Level() logger.Level
- func (l Wrapper) Logf(level logger.Level, format string, args ...interface{})
- func (l Wrapper) OriginalLogger() interface{}
- func (l Wrapper) WithField(field string, value interface{}) logger.Logger
- func (l Wrapper) WithFields(fields Fields) logger.Logger
- func (l Wrapper) WithLevel(logLevel logger.Level) logger.Logger
Constants ¶
View Source
const ContextKeyFormat = contextKey("format")
ContextKeyFormat is the key to extract log format from a log entry context.
Variables ¶
View Source
var Adapter = (*adapter)(nil)
Adapter is implementation of logger.Adapter for logrus.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
Wrapper converts *logrus.Entry to internal.LoggerCompact (which could be easily converted to logger.Logger).
func (Wrapper) OriginalLogger ¶
func (l Wrapper) OriginalLogger() interface{}
OriginalLogger implements internal.LoggerExtensions.
func (Wrapper) WithFields ¶
WithFields implements internal.WithFields.
Click to show internal directories.
Click to hide internal directories.