zaputil

package
v0.5.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStackExtractCore

func NewStackExtractCore(c zapcore.Core) zapcore.Core

NewStackExtractCore returns core that extracts stacktraces from error fields with github.com/pkg/errors error types, and append them to zapcore.Entry.Stack, on Write. That makes stacktraces from errors readable in case of console encoder. WARN(skipor): don't call Check of underlying cores, just use LevelEnabler. That breaks sampling and other complex logic of choosing log or not entry.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL