logging

package
v2.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	New(context map[string]interface{}) Logger
	Error(msg string, context map[string]interface{})
	Warn(msg string, context map[string]interface{})
	Info(msg string, context map[string]interface{})
	Debug(msg string, context map[string]interface{})
	DebugEnabled() bool
}

Logger is an interface compatible with newrelic.Logger

func NewInMemoryLogfmtLogger added in v2.5.0

func NewInMemoryLogfmtLogger(w io.Writer) Logger

NewInMemoryLogfmtLogger writes logfmt-formatted records to the provided writer.

func NewMultiLogger added in v2.5.0

func NewMultiLogger(l ...Logger) Logger

NewMultiLogger returns a composed Logger that forwards all calls to all provided Loggers.

Jump to

Keyboard shortcuts

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