package
3.65.0
Repository: https://github.com/jeffail/benthos.git
Documentation: pkg.go.dev

# Functions

New creates and returns a new logger object.
NewConfig returns a config struct with the default values for each field.
NewV2 returns a new logger from a config, or returns an error if the config is invalid.
Noop creates and returns a new logger object that writes nothing.
Spec returns a field spec for the logger configuration fields.
With attempts to cast the Modular implementation into an interface that implements With, and if successful returns the result.
WithFields attempts to cast the Modular implementation into an interface that implements WithFields, and if successful returns the result.
Wrap a PrintFormatter with a log.Modular implementation.
WrapAtLevel wraps a PrintFormatter with a log.Modular implementation with an explicit log level.

# Constants

Logger level constants.
Logger level constants.
Logger level constants.
Logger level constants.
Logger level constants.
Logger level constants.
Logger level constants.
Logger level constants.

# Variables

Errors used throughout the package.

# Structs

Config holds configuration options for a logger object.
Logger is an object with support for levelled logging and modular components.

# Interfaces

Modular is a log printer that allows you to branch new modules.
PrintFormatter is an interface implemented by standard loggers.