Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext gets the logger from the context If the logger is not found in the context, a new logger is created and set to the context
func New ¶
NewLogger creates a new logger with the default settings The logger is configured to log to stdout in JSON format The log level is set to the value of the ZERO_LOG_LEVEL environment variable If the ZERO_LOG_LEVEL environment variable is not set, the log level is set to INFO
func SetToContext ¶
SetToContext sets the logger to the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.