logger

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 17

Documentation

Index

Constants

View Source
const (
	FieldNF                 string = "NF"
	FieldCategory           string = "CAT"
	FieldListenAddr         string = "LAddr"
	FieldRemoteAddr         string = "RAddr"
	FieldRanAddr            string = "RanAddr"
	FieldRanID              string = "RanID"
	FieldRanType            string = "RanTP"
	FieldRanUeNgapID        string = "RUID"
	FieldAmfUeNgapID        string = "AUID"
	FieldSuci               string = "SUCI"
	FieldSupi               string = "SUPI"
	FieldPDUSessionID       string = "PDUID"
	FieldControlPlaneNodeID string = "CPNodeID"
	FieldUserPlaneNodeID    string = "UPNodeID"
	FieldPFCPTxTransaction  string = "TXTR"
	FieldPFCPRxTransaction  string = "RXTR"
	FieldControlPlaneSEID   string = "CPSEID"
	FieldUserPlaneSEID      string = "UPSEID"
	FieldApplicationID      string = "APPID"
)
View Source
const (
	RFC3339Nano = "2006-01-02T15:04:05.000000000Z07:00"
)

Variables

This section is empty.

Functions

func LogFileHook added in v1.0.4

func LogFileHook(log *logrus.Logger, logPath string) error

func New added in v1.0.4

func New(fieldsOrder []string) *logrus.Logger

func NewGinWithLogrus

func NewGinWithLogrus(log *logrus.Entry) *gin.Engine

NewGinWithLogrus - returns an Engine instance with the ginToLogrus and Recovery middleware already attached.

Types

type FileHook

type FileHook struct {
	// contains filtered or unexported fields
}

func NewFileHook

func NewFileHook(file string, flag int, chmod os.FileMode) (*FileHook, error)

func (*FileHook) Fire

func (h *FileHook) Fire(entry *logrus.Entry) error

Fire(*Entry) implementation for logrus Hook interface

func (*FileHook) Levels

func (h *FileHook) Levels() []logrus.Level

Levels() implementation for logrus Hook interface

Jump to

Keyboard shortcuts

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