Code Review
/
ric-plt
/
xapp-frame.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Subscription REST interface update
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
logger.go
diff --git
a/pkg/xapp/logger.go
b/pkg/xapp/logger.go
index
5009354
..
226a909
100755
(executable)
--- a/
pkg/xapp/logger.go
+++ b/
pkg/xapp/logger.go
@@
-36,6
+36,10
@@
func NewLogger(name string) *Log {
}
}
}
}
+func (l *Log) SetFormat(logMonitor int) {
+ l.logger.Mdclog_format_initialize(logMonitor)
+}
+
func (l *Log) SetLevel(level int) {
l.logger.LevelSet(mdclog.Level(level))
}
func (l *Log) SetLevel(level int) {
l.logger.LevelSet(mdclog.Level(level))
}
@@
-44,6
+48,10
@@
func (l *Log) SetMdc(key string, value string) {
l.logger.MdcAdd(key, value)
}
l.logger.MdcAdd(key, value)
}
+func (l *Log) GetLevel() mdclog.Level {
+ return l.logger.LevelGet()
+}
+
func (l *Log) Error(pattern string, args ...interface{}) {
if l.logger.LevelGet() < mdclog.ERR {
return
func (l *Log) Error(pattern string, args ...interface{}) {
if l.logger.LevelGet() < mdclog.ERR {
return