Commit ce6d33aa authored by DaGal's avatar DaGal

Log into a file as well as stdout

parent 35196b1f
......@@ -9,14 +9,25 @@
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<param name="BufferSize" value="500"/>
<appender-ref ref="stdout"/>
</appender>
</appender>
<appender name="logfile" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${catalina.home}/logs/graphhopper.log"/>
<param name="MaxFileSize" value="5MB"/>
<param name="MaxBackupIndex" value="10"/>
<param name="BufferSize" value="500"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{dd/MM/yyyy HH:mm:ss}] [%p - %c{1}] %m%n"/>
</layout>
</appender>
<logger name="com.graphhopper" additivity="false">
<level value="info" />
<appender-ref ref="ASYNC" />
<appender-ref ref="logfile" />
</logger>
<!-- order important otherwise we'll get a warning -->
<root>
<priority value="warn"></priority>
<appender-ref ref="ASYNC"/>
</root>
</log4j:configuration>
\ No newline at end of file
</log4j:configuration>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment