Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Toolbear74 is right log4j.XML is required. In order to get the XML to validate the <code>&lt;param&gt;</code> tags need to be BEFORE the <code>&lt;rollingPolicy&gt;</code> I suggest setting a logging threshold <code>&lt;param name="threshold" value="info"/&gt;</code></p> <p>When Creating a Log4j.xml file don't forget to to copy the log4j.dtd into the same location.</p> <p>Here is an example:</p> <pre><code>&lt;?xml version="1.0" encoding="windows-1252"?&gt; &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd" &gt; &lt;log4j:configuration&gt; &lt;!-- Daily Rolling File Appender that compresses old files --&gt; &lt;appender name="file" class="org.apache.log4j.rolling.RollingFileAppender" &gt; &lt;param name="threshold" value="info"/&gt; &lt;rollingPolicy name="file" class="org.apache.log4j.rolling.TimeBasedRollingPolicy"&gt; &lt;param name="FileNamePattern" value="${catalina.base}/logs/myapp.log.%d{yyyy-MM-dd}.gz"/&gt; &lt;param name="ActiveFileName" value="${catalina.base}/logs/myapp.log"/&gt; &lt;/rollingPolicy&gt; &lt;layout class="org.apache.log4j.EnhancedPatternLayout" &gt; &lt;param name="ConversionPattern" value="%d{ISO8601} %-5p - %-26.26c{1} - %m%n" /&gt; &lt;/layout&gt; &lt;/appender&gt; &lt;root&gt; &lt;priority value="debug"&gt;&lt;/priority&gt; &lt;appender-ref ref="file" /&gt; &lt;/root&gt; &lt;/log4j:configuration&gt; </code></pre> <p>Considering that your setting a <code>FileNamePattern</code> and an <code>ActiveFileName</code> I think that setting a <code>File</code> property is redundant and possibly even erroneous</p> <p>Try renaming your log4j.properties and dropping in a log4j.xml similar to my example and see what happens.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload