loggers

package
v4.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MainLog    = backendLog.Logger("DCRW")
	LoaderLog  = backendLog.Logger("LODR")
	WalletLog  = backendLog.Logger("WLLT")
	TkbyLog    = backendLog.Logger("TKBY")
	SyncLog    = backendLog.Logger("SYNC")
	PeerLog    = backendLog.Logger("PEER")
	GrpcLog    = backendLog.Logger("GRPC")
	JsonrpcLog = backendLog.Logger("RPCS")
	CmgrLog    = backendLog.Logger("CMGR")
	MixcLog    = backendLog.Logger("MIXC")
	MixpLog    = backendLog.Logger("MIXP")
	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

func InitLogRotator(logFile string, logSize int64)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL