Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DRSM and other components logging through Util #83

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.7-dev
1.2.7
4 changes: 2 additions & 2 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var (
AppLog *zap.SugaredLogger
DrsmLog *zap.SugaredLogger
FsmLog *zap.SugaredLogger
PathLog *zap.SugaredLogger
UtilLog *zap.SugaredLogger
Util3GPPLog *zap.SugaredLogger
atomicLevel zap.AtomicLevel
Expand Down Expand Up @@ -55,9 +54,10 @@ func init() {
panic(err)
}

UtilLog = log.Sugar().With("component", "LIB", "category", "Util")
AppLog = log.Sugar().With("component", "dbtestapp", "category", "mongoapi")
DrsmLog = log.Sugar().With("component", "LIB", "category", "DRSM")
FsmLog = log.Sugar().With("component", "LIB", "category", "FSM")
UtilLog = log.Sugar().With("component", "LIB", "category", "Util")
Util3GPPLog = log.Sugar().With("component", "LIB", "category", "Util3GPP")
}

Expand Down
2 changes: 1 addition & 1 deletion logger/logger_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Logger struct {
SCTPLB *LogSetting `yaml:"SCTPLB" valid:"optional"`

Aper *LogSetting `yaml:"Aper" valid:"optional"`
FSM *LogSetting `yaml:"FSM" valid:"optional"`
Util *LogSetting `yaml:"Util" valid:"optional"`
MongoDBLibrary *LogSetting `yaml:"MongoDBLibrary" valid:"optional"`
NAS *LogSetting `yaml:"NAS" valid:"optional"`
NGAP *LogSetting `yaml:"NGAP" valid:"optional"`
Expand Down
Loading