Skip to content

Commit

Permalink
No logging to file by default (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda authored Dec 25, 2023
1 parent 2271841 commit 1f5c275
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,16 @@
<Console name="console" target="SYSTEM_OUT">
<PatternLayout disableAnsi="false" pattern="%highlight{%date{ISO8601} %level [%thread] %logger{1.} - %message}%n"/>
</Console>
<RollingFile
name="file"
fileName="\${sys:user.home}/logs/${project.name}.log"
filePattern="\${sys:user.home}/logs/${project.name}.log.%d{yyyy-MM-dd}.gz"
ignoreExceptions="false">
<PatternLayout>
<Pattern>%date{ISO8601} %level [%thread] %logger{1.} - %message%n</Pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
</Appenders>
<Loggers>
<Logger level="warn" name="net.schmizz" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="file"/>
</Logger>
<Logger level="warn" name="com.hierynomus.sshj" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="file"/>
</Logger>
<Root level="info" additivity="false">
<AppenderRef ref="console"/>
<AppenderRef ref="file"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 1f5c275

Please sign in to comment.