Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextExtractor ¶
ContextExtractor extracts log fields from a context.
type Logger ¶
type Logger struct { logur.LoggerFacade // contains filtered or unexported fields }
Logger wraps a logur logger and exposes it under a custom interface.
func NewContextAwareLogger ¶
func NewContextAwareLogger(logger logur.LoggerFacade, extractor ContextExtractor) *Logger
NewContextAwareLogger returns a new Logger instance that can extract information from a context.
func NewLogger ¶
func NewLogger(logger logur.LoggerFacade) *Logger
NewLogger returns a new Logger instance.
func (*Logger) WithContext ¶
WithContext annotates a logger with a context.
Click to show internal directories.
Click to hide internal directories.