package
Version:
v0.3.0
Opens a new window with list of versions in this module.
Published: Jul 6, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Default returns pre-configured logger.
New returns logger with config.
type Config struct {
FileOut string `split_words:"true"`
FileErr string `split_words:"true"`
}
Hook is a hook that writes logs of specified LogLevels to specified Writer
Fire will be called when some logging function is called with current hook
It will format log entry to string and write it to appropriate writer
Levels define on which log levels this hook would trigger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.