Skip to content

Instantly share code, notes, and snippets.

@rimms
Created August 3, 2016 02:59
Show Gist options
  • Save rimms/980f47f3cace567712c504eff28a9b91 to your computer and use it in GitHub Desktop.
Save rimms/980f47f3cace567712c504eff28a9b91 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" >
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %X{tid} %-5p [%F:%L] %m%n" />
</layout>
</appender>
<appender name="file" class="org.apache.log4j.FileAppender">
<param name="File" value="${JUBATUS_PROCESS}.${JUBATUS_HOST}_${JUBATUS_PORT}.jubatus.log.${JUBATUS_PID}" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %X{tid} %-5p [%F:%L] %m%n" />
</layout>
</appender>
<root>
<priority value="debug" />
<appender-ref ref="stdout" />
<appender-ref ref="file" />
</root>
</log4j:configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment