Commit ac8e76d
authored
Suppress Default Values from MDC (#120)
The library can add fields from the MDC to each generated log messages.
Certain fields are always created, even if the value is unknown. This changes
avoids those fields in the output. This reduces message size and avoids
unnecessary fields in the target service.
The old behaviour is still available by an extra configuration in the logback.xml
or log4j2.xml.
Signed-off-by: Karsten Schnitter <[email protected]>1 parent fa5b88d commit ac8e76d
File tree
16 files changed
+470
-324
lines changed- cf-java-logging-support-core/src
- main/java/com/sap/hcp/cf/logging/common/converter
- test/java/com/sap/hcp/cf/logging/common/converter
- cf-java-logging-support-jersey/src/test/java/com/sap/hcp/cf/logging/jersey/filter
- cf-java-logging-support-log4j2/src
- main/java/com/sap/hcp/cf/log4j2
- converter
- layout
- test/java/com/sap/hcp/cf
- log4j2
- converter
- layout
- logging/common
- cf-java-logging-support-logback/src
- main/java/com/sap/hcp/cf/logback
- converter
- encoder
- test
- java/com/sap/hcp/cf/logback/converter
- resources
- cf-java-logging-support-servlet/src/test/java/com/sap/hcp/cf/logging/servlet/filter
16 files changed
+470
-324
lines changedLines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
49 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| |||
73 | 86 | | |
74 | 87 | | |
75 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
76 | 94 | | |
0 commit comments