modulepackage
0.0.0-20250113141442-78a92dcb5730
Repository: https://github.com/fr-str/log.git
Documentation: pkg.go.dev
# Functions
Any returns any Attr
Use only if value is of a custom type or if specific Attr does not exist.
Bool returns bool Attr.
No description provided by the author
No description provided by the author
Duration returns duration Attr.
Err returns error Attr.
No description provided by the author
No description provided by the author
Float returns float64 Attr.
Group returns group Attr.
HTTPHandler is a logging middleware for http server ordering multiple middlewares for http.Mux is important logger should be the last one due to Handler call order
Example:
mux := http.NewServeMux() mux.HandleFunc("/v1/hello", HelloHandler) http.ListenAndServe(addr, log.HTTPHandler(mux)).
No description provided by the author
No description provided by the author
Int returns int64 Attr.
No description provided by the author
MetadataHandler returns slog.Handler with metadata.
No description provided by the author
New returns logger with default configuration.
NewWithConfiguration returns logger with given configuration.
String returns string Attr.
TextHandler returns slog.Handler for rendering message in text format.
Time returns time Attr.
No description provided by the author
No description provided by the author
Uint returns uint64 Attr.
No description provided by the author
No description provided by the author
# Constants
CorrelationIDHeaderKey is the HTTP header key used for transmitting correlation IDs.
CorrelationIdKey is a default key name for go contexts.
PC - program counter, where log is created.
# Variables
No description provided by the author