Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v1.0.3
type Logger struct {
// contains filtered or unexported fields
}
Logger implements the forwarder.Logger interface using the standard log package.
type Option ¶ added in v1.1.0
type Option func(*Logger)
Option is a function that modifies the Logger.
func WithDecorate ¶ added in v1.1.0
WithDecorate allows to a function that modifies the log message before it is written.
func WithLabels ¶ added in v1.1.1
WithLabels allows to set labels that are added to each log message.
func WithOnError ¶ added in v1.1.0
WithOnError allows to set a function that is called when an error is logged.
Click to show internal directories.
Click to hide internal directories.