logging

package
v0.0.0-...-ebe581b Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormat   = "2006-01-02 15:04:05"
	DefaultLevel = logrus.InfoLevel
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logging

type Logging struct {
	// Format is the log record format specifier for the Logging instance
	// If Format is not provided, a default format that provides basic information will
	// be used.
	Format *logrus.TextFormatter

	// logrus log level, default info
	Level logrus.Level

	// Writer is the sink for encoded and formatted log records.
	Writer io.Writer
}

Logging maintains the state associated with the PaddleDTX logging system

func InitLog

func InitLog(conf *config.Log, fileName string, isSetFormat bool) (*Logging, error)

InitLog initiates Logging instance.

Jump to

Keyboard shortcuts

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