Documentation
¶
Overview ¶
Package logex configures a new logger for an application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Format specifies the output log format.
// Accepted values are: json, logfmt
Format string
// NoColor makes sure that no log output gets colorized.
NoColor bool
// This is the list of log levels.
Levels []string
// DSN is the DSN of a external logs store.
DSN string
}
Options contains required options to initialize a new logger.
Click to show internal directories.
Click to hide internal directories.