From 7cd724c9a6f9f4ba34399cbcf41a3f4830b60438 Mon Sep 17 00:00:00 2001 From: ankita10r <92036361+ankita10r@users.noreply.github.com> Date: Fri, 29 Jul 2022 15:56:42 +0530 Subject: [PATCH] editing date time format for logs (#37) --- src/main/resources/application.yml | 4 +++- src/main/resources/logback.xml | 11 +++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 55a037b9..b64e07e3 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -75,4 +75,6 @@ management: enabled: true logging: level: - root: ERROR + root: INFO + pattern: + console: "%clr(%d{dd-MM-yyyy HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr([%35.35t]){faint} %clr(%-28.28logger{28}){cyan} %clr(:){faint}%X{BUSINESS-LOG} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}" diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 11523f66..b07b6a32 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -2,8 +2,8 @@ - + + @@ -12,12 +12,7 @@ - - - - - - + \ No newline at end of file