package
0.0.0-20190722071344-ea1d8b2dbe68
Repository: https://github.com/arxanchain/sdk-go-common.git
Documentation: pkg.go.dev

# Functions

DefaultLevel returns the fallback value for loggers to use if parsing fails.
GetModuleLevel gets the current logging level for the specified module.
GetPeerStartupLevel returns the peer startup level for the specified module.
InitBackend sets up the logging backend based on the provided logging formatter and I/O writer.
InitFromSpec initializes the logging based on the supplied spec.
InitRollingBackend set rolling log backend maxSize is the maximum size in megabytes maxBackups is the maximum number of old log files to retain maxAge is the maximum number of days to retain old log files.
MustGetLogger is used in place of `logging.MustGetLogger` to allow us to store a map of all modules and submodules that have loggers in the system.
Reset sets to logging to the defaults defined in this package.
RevertToPeerStartupLevels reverts the log levels for all modules to the level defined at the end of peer startup.
SetFormat sets the logging format.
SetModuleLevel sets the logging level for the modules that match the supplied regular expression.
SetPeerStartupModulesMap saves the modules and their log levels.

# Constants

No description provided by the author