logger

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 16 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (
	JWT_USR_KEY = "email"
)
View Source
const (
	RFC3339Nano = "2006-01-02T15:04:05.000000000Z07:00"
)

Variables

This section is empty.

Functions

func LogFileHook

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

func New

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

func NewGinWithLogrus

func NewGinWithLogrus(log *logrus.Entry, middleware ...gin.HandlerFunc) *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