From: ranjan.kumar@t-systems.com Date: Wed, 4 Jun 2025 09:44:39 +0000 (+0200) Subject: log format changes from patter log to json format X-Git-Tag: 1.13.5^0 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b9c26efa16b63dd49344aa90217946da83b21723;p=aai%2Fbabel.git log format changes from patter log to json format Issue-ID: AAI-4170 Change-Id: I927488b8ece909e7d887c6dc6b96bd40ddade8a2 Signed-off-by: ranjan.kumar@t-systems.com --- diff --git a/pom.xml b/pom.xml index 9623904..c4780e0 100644 --- a/pom.xml +++ b/pom.xml @@ -405,6 +405,11 @@ 1.18.32 provided + + net.logstash.logback + logstash-logback-encoder + 6.6 + diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 98c626b..d0bf65d 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -14,175 +14,134 @@ # See the License for the specific language governing permissions and # limitations under the License. --> - - - - - - - - - - - - - - - - + + + + + timestamp + + + + context + ServerIPAddress + EntryTimestamp + InvokeTimestamp + ErrorCode + ErrorDesc + + + exception + + ^sun\.reflect\..*\.invoke + ^net\.sf\.cglib\.proxy\.MethodProxy\.invoke + true + + + + thread + + + logger + 36 + + + + + - - ${logDirectory}/${generalLogName}.log - - ${logDirectory}/${generalLogName}.%d{yyyy-MM-dd}.log.zip - - 60 - - - ${errorLogPattern} - - INFO 256 - + - - - - ${logDirectory}/${auditLogName}.log - - ${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.log.zip - - 60 - - - ${auditLogPattern} - - + + 256 - - - - - ${logDirectory}/${metricsLogName}.log - - ${logDirectory}/${metricsLogName}.%d{yyyy-MM-dd}.log.zip - - 60 - - - ${metricsLogPattern} - + 256 - - - - - - ${logDirectory}/${debugLogName}.log - - - ${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.log.zip - - 60 - - - ${errorLogPattern} - + - - e.level.toInt() < INFO.toInt() - + + e.level.toInt() < INFO.toInt() + DENY NEUTRAL 256 - + false - - - - - - - - - - - - + + + - - + + + - + - - + + + - - + + + - - + + + - - - + + + - + - + - + - + @@ -191,8 +150,13 @@ To find main logging config please check `logging.config` in the application.pro - + - + + + + + + \ No newline at end of file