Documentation
¶
Index ¶
- func GetEnvironment() logp.Environment
- func Logging(beatName string, cfg *config.C) error
- func LoggingWithOutputs(beatName string, cfg *config.C, outputs ...zapcore.Core) error
- func LoggingWithTypedOutputsLocal(beatName string, cfg, typedCfg *config.C, logKey, kind string, ...) (*logp.Logger, error)
- func LoggingWithTypedOutputsNonGlobal(beatName string, cfg, typedCfg *config.C, logKey, kind string, ...) (*logp.Logger, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvironment ¶ added in v0.9.6
func GetEnvironment() logp.Environment
func Logging ¶
Logging builds a logp.Config based on the given common.Config and the specified CLI flags.
func LoggingWithOutputs ¶
LoggingWithOutputs builds a logp.Config based on the given common.Config and the specified CLI flags along with the given outputs.
func LoggingWithTypedOutputsLocal ¶ added in v0.18.12
func LoggingWithTypedOutputsLocal(beatName string, cfg, typedCfg *config.C, logKey, kind string, outputs ...zapcore.Core) (*logp.Logger, error)
LoggingWithTypedOutputsLocal applies some defaults and returns a local logger instance that also routes typed log entries to a separate output.
func LoggingWithTypedOutputsNonGlobal ¶ added in v0.46.2
func LoggingWithTypedOutputsNonGlobal(beatName string, cfg, typedCfg *config.C, logKey, kind string, outputs ...zapcore.Core) (*logp.Logger, error)
LoggingWithTypedOutputsNonGlobal is identical to LoggingWithTypedOutputsLocal but does not mutate the global logger, making it safe for creating component-specific loggers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.