package
4.41.0
Repository: https://github.com/redpanda-data/benthos.git
Documentation: pkg.go.dev

# Functions

FromParsed extracts the log fields from the parsed config and returns a log config.
New returns a new logger from a config, or returns an error if the config is invalid.
NewBenthosLogAdapter creates a new Benthos log adapter.
NewConfig returns a config struct with the default values for each field.
Noop creates and returns a new logger object that writes nothing.
Spec returns a field spec for the logger configuration fields.
TeeLogger creates a new log adapter that allows you to branch new modules.
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.

# Structs

Config holds configuration options for a logger object.
File contains configuration for file based logging.
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.