feat: added dependency for Logger class

This commit is contained in:
dancingCycle 2022-01-05 12:34:59 -05:00
parent ad86b32d37
commit c256048f6a
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="INFO">
<Appenders>
<RollingFile name="rollingFile"
fileName="log.txt"
filePattern="log-%d{yyyy-MM-dd}-%i.txt"
ignoreExceptions="false">
<PatternLayout>
<Pattern>[%-5p] %d{yyyy-MM-dd HH:mm:ss.SSS} %c{1} %m%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="21MB"/>
</Policies>
<DefaultRolloverStrategy max="5"/>
</RollingFile>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="[%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} %c{1} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="de.swingbe" level="all" additivity="true">
<appender-ref ref="rollingFile" level="debug"/>
</Logger>
<Root level="debug" additivity="false">
<appender-ref ref="console"/>
</Root>
</Loggers>
</Configuration>