Skip to content

Commit

Permalink
create log4j logfile only when required (#262)
Browse files Browse the repository at this point in the history
Co-authored-by: Pitterling
  • Loading branch information
Pitterling authored Nov 15, 2022
1 parent dd37fe7 commit 9a6cabe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<File name="MyFile" fileName="ksar_all.log" immediateFlush="true" append="false">
<File name="MyFile" fileName="ksar_all.log" immediateFlush="true" append="false" createOnDemand="true">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
</appenders>
Expand Down

0 comments on commit 9a6cabe

Please sign in to comment.