package
0.11.0
Repository: https://github.com/elastic/elastic-agent-libs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

Configure configures the logp package.
ConfigureWithCore configures the global logger to use the passed in core.
ConfigureWithOutputs configures the global logger to use an output created from `defaultLoggerCfg` and all the outputs passed by `outputs`.
ConfigureWithTypedOutput configures the global logger to use typed outputs.
No description provided by the author
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.
DefaultEventConfig returns the default config options for the event logger in 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.
No description provided by the author
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.
No description provided by the author
L returns an unnamed global logger.
MakeDebug returns a function that logs at debug level.
NewInMemory returns a new in-memory logger along with the buffer to which it logs.
NewLogger returns a new Logger labeled with the name of the selector.
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.
No description provided by the author
Sync flushes any buffered log entries.
No description provided by the author
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.
DefaultType is the default log type.
Logging levels.
EventType is the type for log entries containing event data.
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.
TypeKey is the default key to define log types.
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.