Skip to content

Commit

Permalink
Merge pull request #17 from ankita10r/dateFormatChange
Browse files Browse the repository at this point in the history
Editing date time format for logs
  • Loading branch information
avikganguly01 authored Aug 1, 2022
2 parents 2c3afd2 + 50d7924 commit 5bb7ba9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,7 @@ bpmn:
logging:
level:
ROOT: ERROR
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}"


15 changes: 3 additions & 12 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<configuration scan="true">
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

<property name="CONSOLE_LOG_PATTERN"
value="%clr(%d{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}"/>
<!-- <property name="CONSOLE_LOG_PATTERN"-->
<!-- value="%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}"/>-->

<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
Expand All @@ -12,16 +12,7 @@
</encoder>
</appender>

<logger name="hu.dpc" level="DEBUG"/>
<logger name="io" level="INFO"/>
<logger name="org" level="INFO"/>
<!-- <logger name="org.eclipse" level="DEBUG"/>-->
<logger name="org.eclipse" level="WARN"/>
<logger name="org.apache.camel.component.undertow" level="TRACE"/>
<logger name="com.jayway" level="INFO"/>
<logger name="com.zaxxer" level="INFO"/>

<root level="DEBUG">
<root level="INFO">
<appender-ref ref="CONSOLE"/>
</root>
</configuration>

0 comments on commit 5bb7ba9

Please sign in to comment.