BAEL-38 - Minor changes
This commit is contained in:
parent
16295e6f7b
commit
1a11364e57
|
@ -29,31 +29,21 @@
|
|||
<version>2.6</version>
|
||||
</dependency>
|
||||
|
||||
<!--disruptor for log4j2 async logging-->
|
||||
<!--disruptor for log4j2 async logging-->
|
||||
<dependency>
|
||||
<groupId>com.lmax</groupId>
|
||||
<artifactId>disruptor</artifactId>
|
||||
<version>3.3.4</version>
|
||||
</dependency>
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.apache.logging.log4j</groupId>-->
|
||||
<!--<artifactId>log4j-api</artifactId>-->
|
||||
<!--<version>2.6</version>-->
|
||||
<!--</dependency>-->
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>org.apache.logging.log4j</groupId>-->
|
||||
<!--<artifactId>log4j-core</artifactId>-->
|
||||
<!--<version>2.6</version>-->
|
||||
<!--</dependency>-->
|
||||
|
||||
<!--logback dependencies-->
|
||||
|
||||
<!--<dependency>-->
|
||||
<!--<groupId>ch.qos.logback</groupId>-->
|
||||
<!--<artifactId>logback-classic</artifactId>-->
|
||||
<!--<version>1.1.7</version>-->
|
||||
<!--</dependency>-->
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.1.7</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<param name="append" value="false"/>
|
||||
<layout class="org.apache.log4j.PatternLayout">
|
||||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %-5p %m%n"/>
|
||||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %p %m%n" />
|
||||
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} %p %m%n"/>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# Console appender
|
||||
<Console name="stdout" target="SYSTEM_OUT">
|
||||
# Pattern of log message for console appender
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %p %m%n" />
|
||||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %p %m%n"/>
|
||||
</Console>
|
||||
|
||||
# File appender
|
||||
|
@ -19,7 +19,7 @@
|
|||
<Logger name="com.baeldung.log4j2" level="TRACE"/>
|
||||
|
||||
<AsyncRoot level="DEBUG">
|
||||
<AppenderRef ref="stdout" />
|
||||
<AppenderRef ref="stdout"/>
|
||||
<AppenderRef ref="fout"/>
|
||||
</AsyncRoot>
|
||||
</Loggers>
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
<configuration>
|
||||
# Console appender
|
||||
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<layout class="ch.qos.logback.classic.PatternLayout">
|
||||
# Pattern of log message for console appender
|
||||
<Pattern>%d{yyyy-MM-dd HH:mm:ss} %p %m%n</Pattern>
|
||||
</layout>
|
||||
</appender>
|
||||
# Console appender
|
||||
<appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<layout class="ch.qos.logback.classic.PatternLayout">
|
||||
# Pattern of log message for console appender
|
||||
<Pattern>%d{yyyy-MM-dd HH:mm:ss} %p %m%n</Pattern>
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
# File appender
|
||||
<appender name="fout" class="ch.qos.logback.core.FileAppender">
|
||||
# Name of a log file
|
||||
<file>log4j/target/baeldung-logback.log</file>
|
||||
<append>false</append>
|
||||
<encoder>
|
||||
# Pattern of log message for file appender
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %p %m%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
# File appender
|
||||
<appender name="fout" class="ch.qos.logback.core.FileAppender">
|
||||
# Name of a log file
|
||||
<file>log4j/target/baeldung-logback.log</file>
|
||||
<append>false</append>
|
||||
<encoder>
|
||||
# Pattern of log message for file appender
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss} %p %m%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
# Override log level for specified package
|
||||
<logger name="com.baeldung.logback" level="TRACE"/>
|
||||
# Override log level for specified package
|
||||
<logger name="com.baeldung.logback" level="TRACE"/>
|
||||
|
||||
<root level="DEBUG">
|
||||
<appender-ref ref="stdout" />
|
||||
<appender-ref ref="fout" />
|
||||
</root>
|
||||
<root level="DEBUG">
|
||||
<appender-ref ref="stdout"/>
|
||||
<appender-ref ref="fout"/>
|
||||
</root>
|
||||
</configuration>
|
Loading…
Reference in New Issue