logging

package
v3.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: BSD-3-Clause Imports: 4 Imported by: 13

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]any) Logger
	NewContext(ctx context.Context) Logger
	Error(msg string, context map[string]any)
	Warn(msg string, context map[string]any)
	Info(msg string, context map[string]any)
	Debug(msg string, context map[string]any)
	DebugEnabled() bool
}

Logger is an interface compatible with newrelic.Logger

func NewInMemoryLogfmtLogger

func NewInMemoryLogfmtLogger(w io.Writer) Logger

NewInMemoryLogfmtLogger writes logfmt-formatted records to the provided writer.

func NewMultiLogger

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