Created
May 3, 2013 15:34
-
-
Save emoseman/5509963 to your computer and use it in GitHub Desktop.
Initialial logback.xml
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
<!-- most of this copied directly from http://logback.qos.ch/manual/configuration.html --> | |
<configuration debug = "false" scan = "false" scanPeriod = "30 seconds"> | |
<contextName>AppName</contextName> | |
<appender name = "STDOUT" class = "ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} %contextName [%thread] %-5level %logger{36} - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<!-- | |
<appender name = "FILE" class = "ch.qos.logback.core.FileAppender"> | |
<file>${USER_HOME}/logfile.log</file> | |
<encoder> | |
<pattern>%date %contextName %level [%thread] %logger{10} [%file:%line] %msg%n</pattern> | |
</encoder> | |
</appender> | |
--> | |
<!-- | |
<logger name="org.emoseman.package" additivity="false"> | |
<appender-ref ref="FILE" /> | |
</logger> | |
--> | |
<root level = "info"> | |
<appender-ref ref = "STDOUT" /> | |
<!-- <appender-ref ref = "FILE" /> --> | |
</root> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment