Categorygithub.com/outofforest/logger
modulepackage
0.5.5
Repository: https://github.com/outofforest/logger.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddFlags adds flags defined by logger.
ConfigureWithCLI configures logger based on CLI flags.
Flags returns new flag set preconfigured with logger-specific options.
Get gets logger from context.
New creates new logger.
With adds new logger to context.
WithLogger adds existing logger to context.

# Constants

FormatConsole causes logs to be printed in console format delivered by zap.
FormatJSON causes logs to be printed in JSON format delivered by zap.
FormatYAML causes logs to be printed in YAML.

# Variables

DefaultConfig stores handy default configuration.
EncoderConfig is the config of log encoder.

# Structs

Config stores configuration of the logger.

# Type aliases

Format defines the format of log output.