log4j.xml (example)

 
<!-- For SelfDiagnose, http://www.philemonworks.com/selfdiagnose -->
<appender name="selfdiagnose" class="org.apache.log4j.ConsoleAppender">
  <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%d{dd/MM/yyyy HH:mm:ss,SSS} %-5p %c{1} - %m%n"/>
  </layout>
</appender>

<!-- For SelfDiagnose, http://www.philemonworks.com/selfdiagnose -->
  <logger name="com.philemonworks.selfdiagnose">
    <level value="INFO" />
    <appender-ref ref="selfdiagnose"/>
  </logger>