Documentation ¶
Index ¶
- func AppendAttrs(ctx context.Context, attrs ...slog.Attr) context.Context
- func AttrReplaces(functions ...replaceFn) replaceFn
- func LowerLevel(group []string, attr slog.Attr) slog.Attr
- func NewHandler(handler slog.Handler) slog.Handlerdeprecated
- func SimpleSource(group []string, attr slog.Attr) slog.Attr
- func Stack() string
- func UseContext(handler slog.Handler) slog.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendAttrs ¶
AppendAttrs append attributes into context and create a new context
func AttrReplaces ¶ added in v0.1.1
func AttrReplaces(functions ...replaceFn) replaceFn
AttrReplaces bunch a group of replace functions into a single ReplaceAttr function
func LowerLevel ¶ added in v0.1.3
LowerLevel convert log level to lower
func NewHandler
deprecated
func SimpleSource ¶ added in v0.1.3
SimpleSource make log source shorter
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package stacktrace provides support for gathering stack traces efficiently.
|
Package stacktrace provides support for gathering stack traces efficiently. |
Click to show internal directories.
Click to hide internal directories.