Logging with Log4J in Your Tests
If you use Log4J logging in your tests, in some cases you may miss Log4J output from your logs. In such cases please do the following:
- Use Log4J 1.2.12
- For Log4J 1.2.13+, add the "Follow=true" parameter for console appender, used in Log4J configuration:
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<param name="Follow" value="true"/>
</appender>
Please sign in to leave a comment.