package
2.0.0+incompatible
Repository: https://github.com/fredbi/go-trace.git
Documentation: pkg.go.dev

# Functions

GetTestLoggerConfig is intended to be used in test programs, and inject a logger factory or its underlying *zap.Logger into the tested components.
MustGetLogger creates a named zap logger, typically injected into a service runtime as the root logger.
MustGetTestLoggerConfig is a wrapper around GetTestLoggerConfig that panics if an error is encountered.
NewFactory creates a new logger Factory for an underlying zap logger.
WithCaller adds the source location of the log entry.
WithCallerSkip sets the number of frames in the stack to skip.
WithDatadog enables datadog-specific correlation fields to link logs to trace spans (requires to export all trace samples).
WithDevelopment puts the logger in development mode, which changes the behavior of DPanicLevel and takes stacktraces more liberally.
WithDisableStackTrace disable stack printing for this logger.
WithIgnoreErr ignores errors when parsing an invalid log level, and silently substitutes the default instead.
WithLevel sets the log level.
WithOTEL enables Open Telemetry tracing.
WithOutput allows to select stdout or stderr as the log sink.
WithRedirectStdLog redirects the global standard library "log" to this logger.
WithReplaceGlobals replaces zap global loggers to ths logger.
WithSeedConfig provides the seed zap.Config to construct a logger.
WithSeedTestConfig provides the seed zap.Config to construct a test logger.
WithZapOptions injects zap.Options to the logger.

# Constants

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

# Structs

No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

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