logging

package
v0.11.21 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logging contains log utilities and hooks for extending and customizing the logging's behaviour

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorLocationHook

type ErrorLocationHook struct {
}

ErrorLocationHook provides an implementation of the sirupsen/logrus/Hook interface. Attaches error location information to log entries if an error is being logged and it has stack-trace information (i.e. if it originates from or is wrapped by github.com/pkg/errors).

func (*ErrorLocationHook) Fire

func (h *ErrorLocationHook) Fire(entry *logrus.Entry) error

Fire implements siprupsen/logrus/Hook.Fire. When fired it includes error source information in the log entry.

func (*ErrorLocationHook) Levels

func (h *ErrorLocationHook) Levels() []logrus.Level

Levels implements sirupsen/logrus/Hook.Levels. The hook is fired when logging on the levels specified.

Jump to

Keyboard shortcuts

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