nrlogrus

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextFormatter

type ContextFormatter struct {
	// contains filtered or unexported fields
}

ContextFormatter is a `logrus.Formatter` that will format logs for sending to New Relic.

func NewFormatter

func NewFormatter(app *newrelic.Application, formatter logrus.Formatter) ContextFormatter

func (ContextFormatter) Format

func (f ContextFormatter) Format(e *logrus.Entry) ([]byte, error)

Format renders a single log entry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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