logfmt

package
v0.0.0-...-4dcfcdd Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logfmt adds additional details to log messages with errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(f log.Formatter) log.Formatter

Wrap adds a workaround for there being no support for automatically printing the details of an error to expose the stack trace. This formatter adds an extra detail field to log entries that contain an ErrorKey. If the error to be formatted is a pgconn.PgError, its subfields will also be added to the error message.

https://github.com/sirupsen/logrus/issues/895

Types

This section is empty.

Jump to

Keyboard shortcuts

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