loggers

package
v4.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const ScopeKey = Scope("scope")

Variables

View Source
var (
	Logger *logger
)

Functions

func Configure

func Configure(debug bool, service string, extensions LoggerExtension)

func Default

func Default(service string)

Types

type LoggerExtension

type LoggerExtension struct {
	Extensions []logrus.Hook
}

func (*LoggerExtension) Register

func (l *LoggerExtension) Register(extensions []logrus.Hook)

type Scope added in v4.2.11

type Scope string

Jump to

Keyboard shortcuts

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