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
Add utility module
[ric-plt/xapp-frame.git]
/
pkg
/
xapp
/
logger.go
diff --git
a/pkg/xapp/logger.go
b/pkg/xapp/logger.go
index
69bed09
..
226a909
100755
(executable)
--- a/
pkg/xapp/logger.go
+++ b/
pkg/xapp/logger.go
@@
-48,6
+48,10
@@
func (l *Log) SetMdc(key string, value string) {
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