package
0.0.0-20200323030038-e06075d3173f
Repository: https://github.com/csiabb/blockchain-adapter.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.
InitLogConfig Set the logging level with common ServerGeneral configurations.
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.

# Structs

Config config with rolling 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.