logrus

package
v0.0.0-...-b2144cd Latest Latest
Warning

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

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

Documentation

Overview

Package logrus provides a logrus Formatter for events. To use for the global logger:

logrus.SetFormatter(elogrus.NewFormatter(exporter))
logrus.SetOutput(io.Discard)

and for a Logger instance:

logger.SetFormatter(elogrus.NewFormatter(exporter))
logger.SetOutput(io.Discard)

If you call elogging.SetExporter, then you can pass nil for the exporter above and it will use the global one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFormatter

func NewFormatter() logrus.Formatter

Types

This section is empty.

Jump to

Keyboard shortcuts

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