logging

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FieldKeyComponent = "component"

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *logrus.Logger

GetLogger returns the logger instance.

func GetLoggerForComponent

func GetLoggerForComponent(component string) *logrus.Entry

GetLoggerForComponent returns the logger instance with component field set

func SetLogger

func SetLogger(l *logrus.Logger)

SetLogger sets the logger instance This is useful in testing as the logger can be overridden with a test logger

func SetLoggerConfig

func SetLoggerConfig(config Config) error

Types

type Config

type Config mate.LoggerConfig

Jump to

Keyboard shortcuts

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