cpp/config/fp_log4cxx.xml
<?xml version="1.0" encoding="UTF-8" ?>
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Output the log message to system console -->
<appender name="ApplicationConsoleAppender" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<!-- <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-16c %-5p (%F:%L) - %m%n"/> -->
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-16c %-5p - %m%n" />
</layout>
</appender>
<appender name="FrameProcessorAppender" class="org.apache.log4j.FileAppender">
<param name="file" value="/tmp/frameProcessor.log" />
<param name="append" value="false" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-16c %-5p - %m%n" />
</layout>
</appender>
<!-- all of the loggers inherit settings from the root -->
<root>
<priority value="all" />
<appender-ref ref="ApplicationConsoleAppender" />
</root>
<!-- The frame processor application logger hierachy -->
<logger name="FP">
<priority value="all" />
<appender-ref ref="FrameProcessorAppender" />
</logger>
</log4j:configuration>