Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
newLogger creates a new logger writing to out. The logger will emit a timestamp, the caller's filename, and optionally emit the stacktrace for errors that carry a stack trace.
The Debug and Trace level are samples. It allows up to 100 trace logs per minutes. Additional trace logs will be filtered out. Debug logs are sampled. Every 5th log will be filtered out once the limit of 1000 debug logs per minute is reached.
func SetGlobalLogger ¶
SetGlobalLogger sets the log output in the stdlib log package and the zerolog global loggers.
Types ¶
Click to show internal directories.
Click to hide internal directories.