logging

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(output io.Writer, level logrus.Level) *logrus.Logger

Types

type FileHook

type FileHook struct {
	// contains filtered or unexported fields
}

func NewFileHook

func NewFileHook(parentLogger *logrus.Logger, logPath string, maxSize int, maxBackups int, maxAge int, localTime bool) (*FileHook, error)

func (*FileHook) Fire

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

func (*FileHook) Levels

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

func (*FileHook) Rotate added in v1.0.5

func (hook *FileHook) Rotate()

Jump to

Keyboard shortcuts

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