package
0.0.1
Repository: https://github.com/libonomy/libonomy-p2p.git
Documentation: pkg.go.dev

# Functions

AtxID return a String field (key - "atx_id").
BlockID return a Uint64 field (key - "block_id").
Bool returns a bool field.
ByteString returns a byte string ([]byte) Field.
Debug prints formatted debug level log message.
DebugMode sets log debug level.
Duration returns a duration field.
EpochID return a Uint64 field (key - "epoch_id").
Err returns an error field.
Error prints formatted error level log message.
Event returns a field logger with the Event field set to true.
Info prints formatted info level log message.
InitlibonomyLoggingSystem initializes app logging system.
Int returns an int Field.
Int32 returns an int32 Field.
JSONLog sets logging to be in JSON format or not.
LayerID return a Uint64 field (key - "layer_id").
Level returns the zapcore level of logging.
Namespace make next fields be inside a namespace.
New creates a logger for a module.
NewDefault creates a Log with not file output.
NodeID return a String field (key - "node_id").
Panic writes the log message and then panics.
String returns a string Field.
TxID return a String field (key - "tx_id").
Uint32 returns an uint32 Field.
Uint64 returns an uint64 Field.
Warning prints formatted warning level log message.
With returns a FieldLogger which you can append fields to.

# Variables

AppLog is the local app singleton logger.
NilLogger is a not initialized logger it will panic if you'll call methods on it.
Nop is an option that disables this logger.

# Structs

FieldLogger is a logger that only logs messages with fields.
Log is an exported type that embeds our logger.

# Interfaces

LoggableField as an interface to enable every type to be used as a log field.
Logger is an interface for our logging API.

# Type aliases

Field is a log field holding a name and value.