logger

package
v0.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FieldRanAddr     string = "ran_addr"
	FieldAmfUeNgapID string = "amf_ue_ngap_id"
	FieldSupi        string = "supi"
	FieldSuci        string = "suci"
)

Variables

View Source
var (
	EllaLog    *zap.SugaredLogger
	AuditLog   *zap.SugaredLogger
	MetricsLog *zap.SugaredLogger
	DBLog      *zap.SugaredLogger
	AmfLog     *zap.SugaredLogger
	APILog     *zap.SugaredLogger
	SmfLog     *zap.SugaredLogger
	UpfLog     *zap.SugaredLogger
)

Functions

func CapitalColorLevelEncoder

func CapitalColorLevelEncoder(l zapcore.Level, enc zapcore.PrimitiveArrayEncoder)

CapitalColorLevelEncoder encodes the log level in color.

func ConfigureLogging added in v0.0.8

func ConfigureLogging(systemLevel string, systemOutput string, systemFilePath string, auditOutput string, auditFilePath string) error

ConfigureLogging allows the user to reconfigure the logger. The caller specifies the log level and for each logger (system and audit) the output mode ("stdout", "file", or "both") and (if applicable) a file path.

func LogAuditEvent

func LogAuditEvent(action string, actor string, ip string, details string)

LogAuditEvent logs an audit event to the audit logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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