Skip to content

Instantly share code, notes, and snippets.

@fiddyspence
Created November 27, 2015 11:20
Show Gist options
  • Save fiddyspence/9ed5338d16477516f78e to your computer and use it in GitHub Desktop.
Save fiddyspence/9ed5338d16477516f78e to your computer and use it in GitHub Desktop.
<configuration scan="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d %-5p [%c{2}] %m%n</pattern>
</encoder>
</appender>
<appender name="F1" class="ch.qos.logback.core.FileAppender">
<!-- TODO: this path should not be hard-coded -->
<file>/var/log/puppetlabs/puppetserver/puppetserver.log</file>
<append>true</append>
<encoder>
<pattern>%d %-5p [%c{2}] %m%n</pattern>
</encoder>
</appender>
<logger name="org.eclipse.jetty" level="INFO"/>
<root level="info">
<!--<appender-ref ref="STDOUT"/>-->
<!-- ${logappender} logs to console when running the foreground command -->
<appender-ref ref="${logappender}"/>
<appender-ref ref="F1"/>
</root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment