diff options
author | 2017-08-30 15:07:37 +0530 | |
---|---|---|
committer | 2017-08-30 16:51:03 +0530 | |
commit | 7868ed0487009cc7285a35d1bcd76f7cba6b9bdd (patch) | |
tree | 4bee423b1fea4a7a73bccdc3421857a2ef6f6bba /common/src/main/java/org/openecomp/mso/logger/MsoLogger.java | |
parent | 25c3c5974d80c0c3a799c9c701e1ae45e5d8e773 (diff) |
Fix to get calling application identifier
As per EELF logging guidelines, component can put a calling application
identifier or user name in MDC against key PartnerName. SO is setting
user name against key PartnerName in LogFilter. By having an identity of
calling application can assist in debugging. To achieve this SO will
check request header key X-FromAppId and set its value against MDC -
FromAppId.
Change-Id: Ib67c5e76fdf5567282200e17210ddb49cf9a57fb
Issue-ID: SO-99
Signed-off-by: anupmarathe <anup.marathe@amdocs.com>
Diffstat (limited to 'common/src/main/java/org/openecomp/mso/logger/MsoLogger.java')
-rw-r--r-- | common/src/main/java/org/openecomp/mso/logger/MsoLogger.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java b/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java index 4c39815bd0..e9b6fb1225 100644 --- a/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java +++ b/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java @@ -71,6 +71,9 @@ public class MsoLogger { private static final String USER = "User"; private static final String DUMMY_VALUE = "trace-#"; public static final String UNKNOWN = "UNKNOWN"; + //For getting an identity of calling application + public static final String HEADER_FROM_APP_ID = "X-FromAppId"; + public static final String FROM_APP_ID = "FromAppId"; // Audit/Metric log specific private static final String BEGINTIME = "BeginTimestamp"; private static final String ENDTIME = "EndTimestamp"; |