You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Emi <em...@encs.concordia.ca> on 2016/06/01 19:51:53 UTC

2.6 html format - "
" inserted in the middle of when restart tomcat

Hello,

Updated 2.3 to 2.6. When reload tomcat7, the logfile (html format) not 
shown correctly:

<tr>
<td>13942164</td>
<td title="http-bio-.....exec-49 thread">http-bio-.....</td>
<td title="Level">INFO</td>
<td title=" logger">ActionClass</td>
<td title="Message">......</td>
</tr>

</table>
<br>
</body></html>

<tr>
<td>13936096</td>
<td title=".....c-50 thread">http-bio.....50</td>
<td title="Level"><font color="#993300"><strong>WARN</strong></font></td>
<td title="logger">.....</td>
<td title="Message">.... </td>
</tr>


"</table><br></body></html>" is added in the middle, so html file cannot 
be printed correctly.

Can someone help how to fix this please?

Here is log4j2.xml config:
   <RollingFile name="debug_html"
                    fileName="@log4j.debug.html@"
                    filePattern="@log4j.debug.html@-%i.html">
          <HTMLLayout charset="UTF-8" title="....." />
          <Policies>
             <SizeBasedTriggeringPolicy size="5 MB" />
          </Policies>
       </RollingFile>


    <Logger name="action" level="info" additivity="false">
       <AppenderRef ref="debug_html"   />
    </Logger>

Thanks a lot!


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: 2.6 html format - "
" inserted in the middle of when restart tomcat

Posted by Remko Popma <re...@gmail.com>.
Can you raise a Jira ticket for this?
That way it won't get lost (email tends to drop off the horizon after a while...)

Sent from my iPhone

> On 2016/06/02, at 4:51, Emi <em...@encs.concordia.ca> wrote:
> 
> Hello,
> 
> Updated 2.3 to 2.6. When reload tomcat7, the logfile (html format) not shown correctly:
> 
> <tr>
> <td>13942164</td>
> <td title="http-bio-.....exec-49 thread">http-bio-.....</td>
> <td title="Level">INFO</td>
> <td title=" logger">ActionClass</td>
> <td title="Message">......</td>
> </tr>
> 
> </table>
> <br>
> </body></html>
> 
> <tr>
> <td>13936096</td>
> <td title=".....c-50 thread">http-bio.....50</td>
> <td title="Level"><font color="#993300"><strong>WARN</strong></font></td>
> <td title="logger">.....</td>
> <td title="Message">.... </td>
> </tr>
> 
> 
> "</table><br></body></html>" is added in the middle, so html file cannot be printed correctly.
> 
> Can someone help how to fix this please?
> 
> Here is log4j2.xml config:
>  <RollingFile name="debug_html"
>                   fileName="@log4j.debug.html@"
>                   filePattern="@log4j.debug.html@-%i.html">
>         <HTMLLayout charset="UTF-8" title="....." />
>         <Policies>
>            <SizeBasedTriggeringPolicy size="5 MB" />
>         </Policies>
>      </RollingFile>
> 
> 
>   <Logger name="action" level="info" additivity="false">
>      <AppenderRef ref="debug_html"   />
>   </Logger>
> 
> Thanks a lot!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org