package
0.0.0-20240309073012-30139a74a392
Repository: https://github.com/garaekz/go-rest-api.git
Documentation: pkg.go.dev
# Functions
New creates a new logger using the default configuration.
NewForTest returns a new logger and the corresponding observed logs which can be used in unit tests to verify log entries.
NewWithZap creates a new logger using the preconfigured zap logger.
WithRequest returns a context which knows the request ID and correlation ID in the given request.
# Interfaces
Logger is a logger that supports log levels, context and structured logging.