logrus_file

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelError = iota
	LevelWarn
	LevelInfo
	LevelDebug
)

RFC5424 log message levels.

Variables

This section is empty.

Functions

func NewFileHook

func NewFileHook(config config.Configuration) (hook logrus.Hook, err error)

Types

type FileHook

type FileHook struct {
	W *fileLogWriter
}

func (*FileHook) Fire

func (p *FileHook) Fire(entry *logrus.Entry) (err error)

func (*FileHook) Levels

func (p *FileHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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