Last active
March 10, 2019 12:16
-
-
Save ezhov-da/ec34f23c1df26e8de10924d08d28cf30 to your computer and use it in GitHub Desktop.
java-logback.xml-to-console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<layout class="ch.qos.logback.classic.PatternLayout"> | |
<Pattern> | |
%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n | |
</Pattern> | |
</layout> | |
</appender> | |
<logger name="com.mkyong.web" level="debug" | |
additivity="false"> | |
<appender-ref ref="STDOUT" /> | |
</logger> | |
<root level="error"> | |
<appender-ref ref="STDOUT" /> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment