logging

package
v0.0.0-...-b21a685 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Logger

type Logger struct {
	*logrus.Entry
}

func GetLogger

func GetLogger() Logger

func (*Logger) GetLoggerWithField

func (l *Logger) GetLoggerWithField(k string, v interface{}) Logger

type WriterHook

type WriterHook struct {
	Writer    []io.Writer
	LogLevels []logrus.Level
}

func (*WriterHook) Fire

func (hook *WriterHook) Fire(entry *logrus.Entry) error

func (*WriterHook) Levels

func (hook *WriterHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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