logger_util

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 171

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 (hook *FileHook) Fire(entry *logrus.Entry) error

Fire event

func (*FileHook) Levels

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

type LogSetting

type LogSetting struct {
	DebugLevel   string `yaml:"debugLevel"`
	ReportCaller bool   `yaml:"ReportCaller"`
}

type Logger

type Logger struct {
	AMF   *LogSetting `yaml:"AMF"`
	AUSF  *LogSetting `yaml:"AUSF"`
	N3IWF *LogSetting `yaml:"N3IWF"`
	NRF   *LogSetting `yaml:"NRF"`
	NSSF  *LogSetting `yaml:"NSSF"`
	PCF   *LogSetting `yaml:"PCF"`
	SMF   *LogSetting `yaml:"SMF"`
	UDM   *LogSetting `yaml:"UDM"`
	UDR   *LogSetting `yaml:"UDR"`
	NEF   *LogSetting `yaml:"NEF"`
	WEBUI *LogSetting `yaml:"WEBUI"`

	Aper                         *LogSetting `yaml:"Aper"`
	CommonConsumerTest           *LogSetting `yaml:"CommonConsumerTest"`
	FSM                          *LogSetting `yaml:"FSM"`
	MongoDBLibrary               *LogSetting `yaml:"MongoDBLibrary"`
	NAS                          *LogSetting `yaml:"NAS"`
	NGAP                         *LogSetting `yaml:"NGAP"`
	OpenApi                      *LogSetting `yaml:"OpenApi"`
	NamfCommunication            *LogSetting `yaml:"NamfCommunication"`
	NamfEventExposure            *LogSetting `yaml:"NamfEventExposure"`
	NnssfNSSAIAvailability       *LogSetting `yaml:"NnssfNSSAIAvailability"`
	NnssfNSSelection             *LogSetting `yaml:"NnssfNSSelection"`
	NsmfEventExposure            *LogSetting `yaml:"NsmfEventExposure"`
	NsmfPDUSession               *LogSetting `yaml:"NsmfPDUSession"`
	NudmEventExposure            *LogSetting `yaml:"NudmEventExposure"`
	NudmParameterProvision       *LogSetting `yaml:"NudmParameterProvision"`
	NudmSubscriberDataManagement *LogSetting `yaml:"NudmSubscriberDataManagement"`
	NudmUEAuthentication         *LogSetting `yaml:"NudmUEAuthentication"`
	NudmUEContextManagement      *LogSetting `yaml:"NudmUEContextManagement"`
	NudrDataRepository           *LogSetting `yaml:"NudrDataRepository"`
	PathUtil                     *LogSetting `yaml:"PathUtil"`
	PFCP                         *LogSetting `yaml:"PFCP"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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