logfmt

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 9 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