logrus

package module
v2.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0, BSD-3-Clause Imports: 4 Imported by: 0

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