Skip to content

Commit

Permalink
Refactor log4j configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed May 22, 2024
1 parent 24dca5a commit 38ce9bf
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%style{%d{YYYY-MM-dd HH:mm:ss.SSS}}{Cyan} %highlight{[%t] %-5level %c#L%L - %msg}{style=Logback}%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console" />
</Root>
<logger name="com.navercorp.spring.batch.plus" level="DEBUG"/>
</Loggers>
</Configuration>
3 changes: 2 additions & 1 deletion spring-batch-plus-kotlin/src/test/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{1.} - %msg%n" />
<PatternLayout pattern="%style{%d{YYYY-MM-dd HH:mm:ss.SSS}}{Cyan} %highlight{[%t] %-5level %c#L%L - %msg}{style=Logback}%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console" />
</Root>
<logger name="com.navercorp.spring.batch.plus" level="DEBUG"/>
</Loggers>
</Configuration>
14 changes: 14 additions & 0 deletions spring-batch-plus/src/integrationTest/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%style{%d{YYYY-MM-dd HH:mm:ss.SSS}}{Cyan} %highlight{[%t] %-5level %c#L%L - %msg}{style=Logback}%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console" />
</Root>
<logger name="com.navercorp.spring.batch.plus" level="DEBUG"/>
</Loggers>
</Configuration>
3 changes: 2 additions & 1 deletion spring-batch-plus/src/test/resources/log4j2-test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{1.} - %msg%n" />
<PatternLayout pattern="%style{%d{YYYY-MM-dd HH:mm:ss.SSS}}{Cyan} %highlight{[%t] %-5level %c#L%L - %msg}{style=Logback}%n"/>
</Console>
</Appenders>
<Loggers>
Expand All @@ -12,5 +12,6 @@
<logger name="org.springframework.jdbc" level="DEBUG"/>
<logger name="org.springframework.jdbc.core.StatementCreatorUtils" level="TRACE"/>
<logger name="org.springframework.transaction" level="DEBUG"/>
<logger name="com.navercorp.spring.batch.plus" level="DEBUG"/>
</Loggers>
</Configuration>

0 comments on commit 38ce9bf

Please sign in to comment.