logging

package
v2.5.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogPath string `json:"log_path"`
	LogName string `json:"log_name"`

	LogLevels []logrus.Level `json:"log_levels"`
}

type Logging

type Logging struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Logging, error)

func (*Logging) Close

func (l *Logging) Close() error

func (*Logging) Fire

func (l *Logging) Fire(entry *logrus.Entry) error

func (*Logging) Levels

func (l *Logging) Levels() []logrus.Level

func (*Logging) Log added in v2.1.1

func (l *Logging) Log(lvl, message string, t time.Time) error

Jump to

Keyboard shortcuts

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