Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// level defines minimum log level that needs to be logged.
Level string
// Discard defines if the logs should be discarded or not. Often dedicated
// to test environment.
Discard bool
// DefaultFields defines the list of static default key-value pair that
// should appear in the logs.
DefaultFields map[string]interface{}
// ContextFields defines the list of dynamic context key-value pair that
// should appear in the logs.
ContextFields map[string]interface{}
}
Config holds configuration parameters.
Click to show internal directories.
Click to hide internal directories.