logconfig

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogrus

func InitLogrus(name string, maxMB int, level logrus.Level)

Types

type DefaultHook

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

func NewDefaultHook

func NewDefaultHook(name string, maxSize int) *DefaultHook

func (*DefaultHook) Fire

func (p *DefaultHook) Fire(entry *logrus.Entry) error

func (*DefaultHook) Levels

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

Jump to

Keyboard shortcuts

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