mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-14 05:20:11 +00:00

* [NOD-1223] Move all network stuff into a new network package. * [NOD-1223] Delete the unused package testutil. * [NOD-1223] Move infrastructure stuff into a new instrastructure package. * [NOD-1223] Move domain stuff into a new domain package.
24 lines
883 B
Go
24 lines
883 B
Go
/*
|
|
Package logs defines an interface and default implementation for subsystem
|
|
logging.
|
|
|
|
Log level verbosity may be modified at runtime for each individual subsystem
|
|
logger.
|
|
|
|
The default implementation in this package must be created by the Backend type.
|
|
Backends can write to any io.Writer, including multi-writers created by
|
|
io.MultiWriter. Multi-writers allow log output to be written to many writers,
|
|
including standard output and log files.
|
|
|
|
Optional logging behavior can be specified by using the LOGFLAGS environment
|
|
variable and overridden per-Backend by using the WithFlags call option. Multiple
|
|
LOGFLAGS options can be specified, separated by commas. The following options
|
|
are recognized:
|
|
|
|
longfile: Include the full filepath and line number in all log messages
|
|
|
|
shortfile: Include the filename and line number in all log messages.
|
|
Overrides longfile.
|
|
*/
|
|
package logs
|