Discover Packages
github.com/uber/arachne
internal
log
package
Version:
v0.0.0-...-c5fcff7
Opens a new window with list of versions in this module.
Published: Jun 28, 2019
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
Documentation
¶
ResetLogFiles keeps the last 'LogFileSizeKeepKB' KB of the log file if the size of the log file
has exceeded 'LogFileSizeMaxMB' MB within the last 'PollOrchestratorIntervalSuccess' hours.
type Config struct {
Level string `yaml:"level"`
StdOut bool `yaml:"stdout"`
LogSink string `yaml:"logSink"`
}
Config contains configuration for logging.
Logger embeds a zap.Logger instance, and extends its Fatal
and Panic methods to first remove the pid file.
CreateLogger creates a zap logger.
Fatal extends the zap Fatal to also remove the PID file.
Panic extends the zap Panic to also remove the PID file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.