Skip to content

Commit

Permalink
editing date time format for logs (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankita10r authored Jul 29, 2022
1 parent 7c22c16 commit 7cd724c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
11 changes: 3 additions & 8 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,12 +12,7 @@
</encoder>
</appender>

<logger name="org" level="INFO"/>
<logger name="io" level="INFO"/>
<logger name="hu.dpc" level="TRACE"/>
<logger name="org.apache.camel.component.undertow" level="TRACE"/>

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

0 comments on commit 7cd724c

Please sign in to comment.