package
1.9.15-temp-stability-tests
Repository: https://github.com/kaspanet/kaspad.git
Documentation: pkg.go.dev

# Functions

DirectionString is a helper function that returns a string that represents the direction of a connection (inbound or outbound).
Get returns a logger of a specific sub system.
InitLog attaches log file and error log file to the backend log.
LevelFromString returns a level based on the input string s.
NewBackend creates a new logger backend.
NewLogClosure casts a function to a LogClosure.
ParseAndSetDebugLevels attempts to parse the specified debug level and set the levels accordingly.
PickNoun returns the singular or plural form of a noun depending on the count n.
SetLogLevel sets the logging level for provided subsystem.
SetLogLevels sets the log level for all subsystem loggers to the passed level.
SupportedSubsystems returns a sorted slice of the supported subsystems for logging purposes.
WithFlags configures a Backend to use the specified flags rather than using the package's defaults as determined through the LOGFLAGS environment variable.

# Constants

Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Llongfile modifies the logger output to include full path and line number of the logging callsite, e.g.
Lshortfile modifies the logger output to include filename and line number of the logging callsite, e.g.

# Variables

BackendLog is the logging backend used to create all subsystem loggers.
SubsystemTags is an enum of all sub system tags.

# Structs

Backend is a logging backend.
Logger is a subsystem logger for a Backend.

# Type aliases

BackendOption is a function used to modify the behavior of a Backend.
Level is the level at which a logger is configured.
LogClosure is a closure that can be printed with %s to be used to generate expensive-to-create data for a detailed log level and avoid doing the work if the data isn't printed.