Merge pull request #3681 from magkrause/BAEL-1543_2
BAEL-1543: Logging to console instead of file.
This commit is contained in:
commit
0f6f60f825
|
@ -1,33 +1,20 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
|
|
||||||
<appender name="FILE-AUDIT"
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
class="ch.qos.logback.core.rolling.RollingFileAppender">
|
<layout class="ch.qos.logback.classic.PatternLayout">
|
||||||
<file>C:\Users\admin\Desktop\Baeldung\repo\magkrause\tutorials\spring-batch\src\main\resources\taskletsvschunks\logs.log</file>
|
|
||||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
|
||||||
<Pattern>
|
<Pattern>
|
||||||
%d{yyyy-MM-dd HH:mm:ss} [%thread] %level %logger{35} - %msg%n
|
%d{yyyy-MM-dd HH:mm:ss} [%thread] %level %logger{35} - %msg%n
|
||||||
</Pattern>
|
</Pattern>
|
||||||
</encoder>
|
</layout>
|
||||||
|
|
||||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
||||||
<!-- rollover daily -->
|
|
||||||
<fileNamePattern>${DEV_HOME}/archived/debug.%d{yyyy-MM-dd}.%i.log
|
|
||||||
</fileNamePattern>
|
|
||||||
<timeBasedFileNamingAndTriggeringPolicy
|
|
||||||
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
||||||
<maxFileSize>10MB</maxFileSize>
|
|
||||||
</timeBasedFileNamingAndTriggeringPolicy>
|
|
||||||
</rollingPolicy>
|
|
||||||
|
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<logger name="org.baeldung.taskletsvschunks" level="debug"
|
<logger name="org.baeldung.taskletsvschunks" level="debug"
|
||||||
additivity="false">
|
additivity="false">
|
||||||
<appender-ref ref="FILE-AUDIT" />
|
<appender-ref ref="STDOUT" />
|
||||||
</logger>
|
</logger>
|
||||||
|
|
||||||
<root level="error">
|
<root level="error">
|
||||||
<appender-ref ref="FILE-AUDIT" />
|
<appender-ref ref="STDOUT" />
|
||||||
</root>
|
</root>
|
||||||
|
|
||||||
</configuration>
|
</configuration>
|
Loading…
Reference in New Issue