log

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-3.0 Imports: 3 Imported by: 31

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = logrus.Error
View Source
var Errorf = logrus.Errorf
View Source
var Fatal = logrus.Fatal
View Source
var Fatalf = logrus.Fatalf
View Source
var Info = logrus.Info
View Source
var Infof = logrus.Infof
View Source
var Print = logrus.Print
View Source
var Printf = logrus.Printf
View Source
var Println = logrus.Println
View Source
var Trace = logrus.Trace
View Source
var Tracef = logrus.Tracef
View Source
var Warn = logrus.Warn
View Source
var Warnf = logrus.Warnf
View Source
var WithFields = logrus.WithFields

Functions

func Open

func Open(opts Options) error

Types

type Fields

type Fields = logrus.Fields

type Options

type Options struct {
	Level  string `json:"level"`
	Caller bool   `json:"caller,omitempty"`
	Text   bool   `json:"text,omitempty"`
	Format string `json:"format,omitempty"`
	Output Output `json:"output"`
}

Options 参数

func Default

func Default() Options

type Output

type Output struct {
	Filename   string `json:"filename"`
	MaxSize    int    `json:"max_size,omitempty"`
	MaxAge     int    `json:"max_age,omitempty"`
	MaxBackups int    `json:"max_backups,omitempty"`
}

Jump to

Keyboard shortcuts

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