package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jan 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
logconfig
Configure logrus logger
Documentation
¶
View Source
const (
FormatText = "text"
FormatJSON = "json"
)
Configure - configures logrus using Options
func MustConfigure(options Options)
MustConfigure - configures logrus using Options or throws fatal on error
type Options struct {
Level string `yaml:"level"`
Format string `yaml:"format"`
Timestamp bool `yaml:"timestamp"`
ReportCaller bool `yaml:"reportCaller"`
SplitOutput bool `yaml:"splitOutput"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.