Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( MainLog = backendLog.Logger("DCRW") LoaderLog = backendLog.Logger("LODR") WalletLog = backendLog.Logger("WLLT") TkbyLog = backendLog.Logger("TKBY") SyncLog = backendLog.Logger("SYNC") GrpcLog = backendLog.Logger("GRPC") JsonrpcLog = backendLog.Logger("RPCS") CmgrLog = backendLog.Logger("CMGR") VspcLog = backendLog.Logger("VSPC") )
Loggers per subsystem. A single backend logger is created and all subsytem loggers created from it will write to the backend. When adding new subsystems, add the subsystem logger variable here and to the subsystemLoggers map.
Loggers can not be used before the log rotator has been initialized with a log file. This must be performed early during application startup by calling initLogRotator.
Functions ¶
func CloseLogRotator ¶
func CloseLogRotator() error
CloseLogRotator closes the log rotator, syncing all file writes, if the rotator was initialized.
func InitLogRotator ¶
InitLogRotator initializes the logging rotater to write logs to logFile and create roll files in the same directory. logSize is the size in KiB after which a log file will be rotated and compressed.
This function must be called before the package-global log rotater variables are used.
Types ¶
This section is empty.