Documentation ¶
Overview ¶
Package logger provides a convenience method for setting up rs/zerolog and returning a logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { LogFile string `json:"log_file"` // Full path and filename of log file; required by LogToFile LogLevel string `json:"log_level"` // One of rs/zerolog support log levels: trace, debug, etc LogToStdout bool `json:"to_stdout"` // Log to STDOUT LogToStderr bool `json:"to_stderr"` // Log to STERR LogToFile bool `json:"to_file"` // Enable logging to file; requires that LogFile is set. }
Logger contains all potential settings available for setting up the rs/zerolog instance
func (*Logger) Initialize ¶
func (l *Logger) Initialize()
Initialize uses the configuration info in the Logger struct to set up the rs/zerolog instance
Click to show internal directories.
Click to hide internal directories.