# Functions
Debug logs with debug level.
Error logs with error level.
Fields sets log fields for a single log line Info, Warn, Debug, Error must be called.
GetID returns the context id from context.
Info logs with info level.
NewLogger returns new instance.
SaveID saves the context id to context variable and custom context store Return a copy of parent in which the value associated with key is.
Setup setups logger.
Warn logs with warn level.
WithContextualValues sets contextual keys and values which will be shared with downstream functions Pass keys and values in log functions if you want to write keys/values for a single log keysAndValues must be string keys and arbitrary values, and extraneous ones are ignored.
# Variables
ContextFunc is to get the actual log context from a custom context (gin-kit context) Override this function at the startup to avoid race condition.
# Interfaces
Logger defines interface for logger.