# Functions
AsJSON specifies to log the output as JSON.
Configure configures the logp package.
XXX: ConfigureWithOutputs is used by elastic-agent only (See file: x-pack/elastic-agent/pkg/core/logger/logger.go).
Critical uses fmt.Sprintf to construct and log a message.
Debug uses fmt.Sprintf to construct and log a message.
DefaultConfig returns the default config options for a given environment the Beat is supposed to be run within.
DevelopmentSetup configures the logger in development mode at debug level.
Err uses fmt.Sprintf to construct and log a message.
HasSelector returns true if the given selector was explicitly set.
Info uses fmt.Sprintf to construct and log a message.
IsDebug returns true if the given selector would be logged.
L returns an unnamed global logger.
MakeDebug returns a function that logs at debug level.
NewLogger returns a new Logger labeled with the name of the selector.
NewTesting creates a testing logger that buffers the logs in memory and logs in debug level.
ObserverLogs provides the list of logs generated during the observation process.
ParseEnvironment returns the environment type by name.
Recover stops a panicking goroutine and logs an Error.
Sync flushes any buffered log entries.
TestingSetup configures logging by calling DevelopmentSetup if and only if verbose testing is enabled (as in 'go test -v').
ToDiscardOutput configures the logger to write to io.Discard.
ToObserverOutput specifies that the output should be collected in memory so that they can be read by an observer by calling ObserverLogs().
Warn uses fmt.Sprintf to construct and log a message.
WithLevel specifies the logging level.
WithSelectors specifies what debug selectors are enabled.
WTF prints the message at PanicLevel and immediately panics with the same message.
# Constants
ContainerEnvironment indicates that the process is running within a container (docker, k8s, rkt, ...).
Critical exists only for config backward compatibility.
Logging levels.
DefaultEnvironment is used if the environment the process runs in is not known.
Logging levels.
Logging levels.
InvalidEnvironment indicates that the environment name given is unknown or invalid.
MacOSServiceEnvironment indicates that the process is running as a daemon on macOS (e.g.
SystemdEnvironment indicates that the process is started and managed by systemd.
Logging levels.
WindowsServiceEnvironment indicates the the process is run as a windows service.
# Variables
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
Field types for structured logging.
# Structs
Config contains the configuration options for the logger.
FileConfig contains the configuration options for the file output.
Logger logs messages to the configured output.
MetricsConfig contains configuration used by the monitor to output metrics into the logstream.
# Type aliases
Environment indicates the environment the logger is supped to be run in.
Level is a logging priority.
LogOption configures a Logger.
Option configures the logp package behavior.