package
0.39.2
Repository: https://github.com/crewlinker/clgo.git
Documentation: pkg.go.dev

# Functions

Fx is a convenient option that configures fx to use the zap logger.
Log retrieves a zap logger from the context.
LoggerFromContext attempts to get a zap logger from the context.
NewContextLogger inits our contextual with the underlying zapcore logger.
NewTraceContextLogger inits a contextual logger that adds trace information to each log line.
Observed configures a logging module that allows for observing while also writing console output to a io.Writer that needs to be supplied.
Provide logging module.
TestProvide is a convenient fx option setup that can easily be included in all tests.
TraceHook creates a context logger hook that appends trace information.
WithLogger returns a context with the provided logger embedded.

# Variables

nolint:gochecknoglobals.

# Structs

Config configures the logging package.
ContextLogger wraps a zap loger but only allows logging with a context.
SecondaryCore can be provided in the DI to make the logger write to a second core.

# Type aliases

ContextHook allows adding fields based on the context.