logrushook

package
v0.0.0-...-dceea31 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogrus

func NewLogrus(c *LogrusConfig) (*logrus.Logger, error)

Types

type JSONFormatter

type JSONFormatter = logrus.JSONFormatter

type LogrusConfig

type LogrusConfig struct {
	Level         logrus.Level
	ReportCaller  bool
	DefaultWirter io.Writer
	Formatter     logrus.Formatter

	WriterInfo any
}

type LogrusLevelFileConfig

type LogrusLevelFileConfig struct {
	Levels  []logrus.Level     `json:"levels" yaml:"levels"`
	Options logger.FileOptions `json:",inline" yaml:",inline"`
}

type LogrusLevelFileConfigs

type LogrusLevelFileConfigs []*LogrusLevelFileConfig

type TextFormatter

type TextFormatter = logrus.TextFormatter

Jump to

Keyboard shortcuts

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