[jira] [Created] (LOG4PHP-230) LoggerAppenderRollingFile breaking log file after certain size

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (LOG4PHP-230) LoggerAppenderRollingFile breaking log file after certain size

JIRA jira@apache.org
DIPAN CHOKSHI created LOG4PHP-230:
-------------------------------------

             Summary: LoggerAppenderRollingFile breaking log file after certain size
                 Key: LOG4PHP-230
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-230
             Project: Log4php
          Issue Type: Bug
            Reporter: DIPAN CHOKSHI


Hi Everyone
Glad that there is bug tracking system for log4php. I am using below
 {quote}
<appender name="batchProcessor" class="LoggerAppenderRollingFile">
                <layout class="LoggerLayoutHtml">
                        <param name="locationInfo" value="true" />
                </layout>
                <param name="maxFileSize" value="1MB" />
                <param name="maxBackupIndex" value="100" />
                <param name="compress" value="true" />
                <!-- change the name accordingly -->
                <param name="file" value="some/path/of/file.log" />
        </appender>

        <logger name="BatchProcessor">
                <appender_ref ref="batchProcessor" />
        </logger>
 {quote}

As you can see it's layout style is LoggerLayoutHtml. As it reaches to 1MB it is creating another log file but when I see them it has breaking HTML table code. There should be something to prevent this and it looks proper in browser.

It has missing start of table tag. FYI
 {quote}

<tr>
<td>360</td>
<td title="4608 thread">4608</td>
<td title="Level">INFO</td>
 <td title="Message">&lt;hr&gt;i:422</td>
</tr>

<tr>
<td>360</td>
<td title="4608 thread">4608</td>
<td title="Level">INFO</td>
<td title="Message">We have liftoff.</td>
</tr>
 {quote}

Hope someone has solution.
TIA



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)