package
1.0.0
Repository: https://github.com/deixis/spine.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Base64 constructs a field that encodes the given value as a padded base64 string.
Bool constructs a Field with the given key and value.
Duration constructs a Field with the given key and value.
Err calls `Error` on the context `Logger`.
Error constructs a Field that lazily stores err.Error() under the key "error".
Float64 constructs a Field with the given key and value.
FromContext returns a `Logger` instance associated with `ctx`, or `NopLogger` if no `Logger` instance could be found.
Int constructs a Field with the given key and value.
Int64 constructs a Field with the given key and value.
JoinFields joins all slices into a single slice.
Nest takes a key and a variadic number of Fields and creates a nested namespace.
NopLogger returns a no-op `Logger`.
Object constructs a field with the given key and an arbitrary object.
ParseLevel parses a string representation of a log level.
No description provided by the author
Skip constructs a no-op Field.
String constructs a Field with the given key and value.
Stringer constructs a Field with the given key and the output of the value's String method.
Time constructs a Field with the given key and value.
Trace calls `Trace` on the context `Logger`.
No description provided by the author
Uint constructs a Field with the given key and value.
Uint64 constructs a Field with the given key and value.
Uintptr constructs a Field with the given key and value.
Warn calls `Warning` on the context `Logger`.
WithContext returns a copy of parent in which the `Logger` is stored.

# Constants

LevelError displays only logs with error level.
LevelTrace displays logs with trace level (and above).
LevelWarning displays logs with warning level (and above).

# Structs

Context carries the log line context (level, timestamp, ...).
A Field is a marshaling operation used to add a key-value pair to a logger's context.

# Interfaces

Formatter converts a log line to a specific format, such as JSON.
Logger is an interface for app loggers.
Printer outputs a log line somewhere, such as stdout, syslog, 3rd party service.

# Type aliases

Level defines log severity.