logrus

package
v1.43.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package logrus provides a log/span correlation hook for the sirupsen/logrus package (https://github.com/sirupsen/logrus).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DDContextLogHook

type DDContextLogHook struct{}

DDContextLogHook ensures that any span in the log context is correlated to log output.

func (*DDContextLogHook) Fire

func (d *DDContextLogHook) Fire(e *logrus.Entry) error

Fire implements logrus.Hook interface, attaches trace and span details found in entry context

func (*DDContextLogHook) Levels

func (d *DDContextLogHook) Levels() []logrus.Level

Levels implements logrus.Hook interface, this hook applies to all defined levels

Jump to

Keyboard shortcuts

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