filelog

package
Version: v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDiffDay

func IsDiffDay(time1, time2 time.Time) bool

Types

type FileHook

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

func NewFileHook

func NewFileHook(baseName string) *FileHook

func (*FileHook) CheckLog added in v1.0.8

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

type HookCheck added in v1.0.8

type HookCheck interface {
	CheckLog(entry *logrus.Entry) error
}

type IFileHook added in v1.0.8

type IFileHook struct {
	HookCheck
	// contains filtered or unexported fields
}

func (*IFileHook) Fire added in v1.0.8

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

func (*IFileHook) Levels added in v1.0.8

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

type SimFileHook added in v1.0.8

type SimFileHook struct {
	Name      string
	CurSize   int64
	LimitSize int64
	IFileHook
}

func NewSimFileHook added in v1.0.8

func NewSimFileHook(Name string, limitsize int64) *SimFileHook

func (*SimFileHook) CheckLog added in v1.0.8

func (hook *SimFileHook) CheckLog(entry *logrus.Entry) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL