package
Version:
v0.4.2
Opens a new window with list of versions in this module.
Published: Jun 17, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Adds an scope hook in the logger if is not already added.
type ScopeHook struct {
LogLevels []log.Level
}
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.