package
0.3.13-beta.0
Repository: https://github.com/spacemeshos/go-spacemesh.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
Array for logging array efficiently.
Binary will encode binary content in base64 when logged.
Bool returns a bool field.
Context inlines requestId and sessionId fields if they are present.
Debug prints formatted debug level log message.
DefaultLevel returns the zapcore level of logging.
Duration returns a duration field.
Err returns an error field.
Error prints formatted error level log message.
Event returns a field logger with the Event field set to true.
ExtractRequestFields extracts additional loggable fields associated with the request from a context object.
ExtractRequestID extracts the request id from a context object.
ExtractSessionFields extracts additional loggable fields associated with the session from a context object.
ExtractSessionID extracts the session id from a context object.
Fatal prints formatted error level log message.
FieldNamed returns a field with the provided name instead of the default.
GetLogger gets logger.
Info prints formatted info level log message.
Inline for inline logging.
Int returns an int Field.
Int32 returns an int32 Field.
JSONLog turns JSON format on or off.
Namespace make next fields be inside a namespace.
NewDefault creates a Log with the default log level.
NewFromLog creates a Log from an existing zap-compatible log.
NewMockLogger creates a new mock instance.
NewNop creates silent logger.
NewWithLevel creates a logger with a fixed level and with a set of (optional) hooks.
Object for logging struct fields in namespace.
Panic writes the log message and then panics.
RegisterHooks wraps provided loggers with hooks.
SetLogger sets logger.
SetupGlobal overwrites global logger.
No description provided by the author
String returns a string Field.
Stringer returns an fmt.Sringer Field.
Time returns a field for time.Time struct value.
Uint16 returns an uint32 Field.
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.
WithNewRequestID does the same thing as WithRequestID but generates a new, random requestId.
WithNewSessionID does the same thing as WithSessionID but generates a new, random sessionId.
WithRequestID returns a context which knows its request ID.
WithSessionID returns a context which knows its session ID A session ID tracks a single thread of execution.
No description provided by the author
No description provided by the author
# Constants
PeerIDKey is used to store the peer ID in the p2p stack.
# Structs
FieldLogger is a logger that only logs messages with fields.
Log is an exported type that embeds our logger.
MockLogger is a mock of Logger interface.
MockLoggerMockRecorder is the mock recorder for MockLogger.
# Interfaces
LoggableField as an interface to enable every type to be used as a log field.
Logger is an interface for our logging API.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
Field is a log field holding a name and value.
Level is an alias to zapcore.Level.
No description provided by the author
No description provided by the author
No description provided by the author