Skip to content

Instantly share code, notes, and snippets.

@emoseman
Created May 3, 2013 15:34
Show Gist options
  • Save emoseman/5509963 to your computer and use it in GitHub Desktop.
Save emoseman/5509963 to your computer and use it in GitHub Desktop.
Initialial logback.xml
<!-- 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