Documentation
¶
Overview ¶
Package logging provides a configurable logger for the server.
Index ¶
Constants ¶
View Source
const TimeLayout = "2006-01-02T15:04:05.000Z"
TimeLayout is the default time layout for the logger.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is a function that sets an option for the logger.
func WithConsoleLog ¶
WithConsoleLog enables or disables console logging.
func WithFileName ¶
WithFileName sets the log file name.
func WithSoleWriter ¶
WithSoleWriter sets the sole writer to use for logging. This is useful for testing logging output.
func WithWriters ¶
WithWriters sets adds additional writers to use for logging. This is useful for testing logging output.
Click to show internal directories.
Click to hide internal directories.