log

package
v3.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 4 Imported by: 31

Documentation

Index

Constants

View Source
const ENV = "IOT_MASTER_LOG_"

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 Load added in v3.1.0

func Load() error

func Open

func Open() error

func SetOptions added in v3.1.0

func SetOptions(opts Options)

func Store added in v3.1.0

func Store() 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"`
}

Options 参数

func Default

func Default() Options

func GetOptions added in v3.1.0

func GetOptions() Options

func (*Options) FromEnv added in v3.1.0

func (options *Options) FromEnv()

func (*Options) ToEnv added in v3.1.0

func (options *Options) ToEnv() []string

Jump to

Keyboard shortcuts

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