package
0.0.0-20230215122938-782863c0c33c
Repository: https://github.com/chainspace/blockmania.git
Documentation: pkg.go.dev
# Packages
Package fld provides field constructors with preset key names.
# Functions
AtDebug returns whether the current configuration will log at the DebugLevel.
AtError returns whether the current configuration will log at the ErrorLevel.
AtInfo returns whether the current configuration will log at the InfoLevel.
AtStackTrace returns whether the current configuration will log at the StackTraceLevel.
AtWarn returns whether the current configuration will log at the WarnLevel.
Bool represents a field with a boolean value.
Bools represents a field with a slice of boolean values.
Bytes represents a field with a byte slice value.
BytesArray represents a field with an array of byte slice values.
Debug logs the given text and fields at DebugLevel using the root logger.
Debugf formats similarly to Printf and logs the resulting output at the DebugLevel using the root logger.
Digest represents a field with a hash digest value.
Digests represents a field with an array of hash digest values.
Duration represents a field with a duration value.
Durations represents a field with an array of duration values.
Err represents a field with an error value.
Error logs the given text and fields at ErrorLevel using the root logger.
Errorf formats similarly to Printf and logs the resulting output at the ErrorLevel using the root logger.
Errs represents a field with an array of error values.
Fatal logs the given text and fields at FatalLevel using the root logger.
Fatalf formats similarly to Printf and logs the resulting output at the FatalLevel using the root logger.
Float32 represents a field with a float32 value.
Float32s represents a field with an array of float32 values.
Float64 represents a field with a float64 value.
Float64s represents a field with an array of float64 values.
Info logs the given text and fields at InfoLevel using the root logger.
Infof formats similarly to Printf and logs the resulting output at the InfoLevel using the root logger.
Int represents a field with an int value.
Int16 represents a field with an int16 value.
Int16s represents a field with an array of int16 values.
Int32 represents a field with an int32 value.
Int32s represents a field with an array of int32 values.
Int64 represents a field with an int64 value.
Int64s represents a field with an array of int64 values.
Int8 represents a field with an int8 value.
Int8s represents a field with an array of int8 values.
Ints represents a field with an array of int values.
SetGlobal sets the given fields on the root logger.
StackTrace logs the given text at StackTraceLevel along with the stacktrace using the root logger.
String represents a field with a string value.
Strings represents a field with an array of string values.
Time represents a field with a time value.
Times represents a field with an array of time values.
ToConsole sets the log level of the console logger.
ToFile starts logging at the given file path.
ToServer starts logging to the given server.
Uint represents a field with a uint value.
Uint16 represents a field with a uint16 value.
Uint16s represents a field with an array of uint16 values.
Uint32 represents a field with a uint32 value.
Uint32s represents a field with an array of uint32 values.
Uint64 represents a field with a uint64 value.
Uint64s represents a field with an array of uint64 values.
Uint8 represents a field with a uint8 value.
Uint8s represents a field with an array of uint8 values.
Uints represents a field with an array of uint values.
Warn logs the given text and fields at WarnLevel using the root logger.
Warnf formats similarly to Printf and logs the resulting output at the WarnLevel using the root logger.
With returns a new logger based off of the root logger that comes preset with the given fields.
# Constants
Logging levels.
Logging levels.
Logging levels.
Logging levels.
Logging levels.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Log field types.
Logging levels.
# Type aliases
Level represents a logging level.