logging

package
v0.0.0-...-5cadadf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHookToLogger

func AddHookToLogger(l Logger, h logrus.Hook)

func ConfigureReporter

func ConfigureReporter(logger Logger, dsn, env string, tag map[string]string) error

Types

type LogErrField

type LogErrField struct {
	Err string `json:"error"`
}

func NewErrorField

func NewErrorField(e error) LogErrField

type Logger

type Logger logrus.FieldLogger

Logger is a logger that can

var Discard Logger

Discard is a logger that has all of the same functionality as an ordinary logger, but discards all logging output. Useful for testing.

func New

func New(name string, config configs.LogConfig) Logger

New creates a new logger with the give name.

Jump to

Keyboard shortcuts

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