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/07/11 14:23:52 UTC

2.6.2 minSize; reload tomcat - html log did not show correctly

Hello,

upgraded to 2.6.2 with minSize setup, when reload tomcat, debug.html are 
not shown correctly.

log4j.xml:

       <RollingFile name="debug_html"
                    fileName="......"
                    filePattern="@log4j.debug.html@-%i.html">
          <HTMLLayout charset="UTF-8" title="title" />

          <Policies>
             <OnStartupTriggeringPolicy minSize="10 MB"/>
             <SizeBasedTriggeringPolicy size="10 MB" />
          </Policies>
       </RollingFile>


Steps:

Start tomcat7, Log message, reload tomcat7: debug.html are not shown 
correctly.

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

" are shown twice (attached debug.html log file).

May I know is there anything I didn't set correctly please?

Thanks a lot!




Re: 2.6.2 minSize; reload tomcat - html log did not show correctly

Posted by Emi <em...@encs.concordia.ca>.
> attachments are discarded by the mailing list software so I couldn\u2019t look at the log file.
Send to email as well.
> Which file has the problem?  The one specified on fileName or the one in filePattern?
fileName - debug.html.

Only 3 lines in the file.

> OnStartupTriggeringPolicy specifically specifies that the footer should not be written before it calls rollover(), so it should not be causing this.

>> to create a Jira ticket
Done (LOG4J2-1466).


Re: 2.6.2 minSize; reload tomcat - html log did not show correctly

Posted by Ralph Goers <ra...@dslextreme.com>.
Yes, also attachments are discarded by the mailing list software so I couldn’t look at the log file.  Which file has the problem?  The one specified on fileName or the one in filePattern?

Was the file 10 MB? 

OnStartupTriggeringPolicy specifically specifies that the footer should not be written before it calls rollover(), so it should not be causing this.

Ralph

> On Jul 16, 2016, at 12:14 AM, Remko Popma <re...@gmail.com> wrote:
> 
> It may be good to create a Jira ticket for this before it drops below my inbox horizon. 
> 
> Sent from my iPhone
> 
>> On 2016/07/11, at 23:23, Emi <em...@encs.concordia.ca> wrote:
>> 
>> Hello,
>> 
>> upgraded to 2.6.2 with minSize setup, when reload tomcat, debug.html are not shown correctly.
>> 
>> log4j.xml:
>> 
>>     <RollingFile name="debug_html"
>>                  fileName="......"
>>                  filePattern="@log4j.debug.html@-%i.html">
>>        <HTMLLayout charset="UTF-8" title="title" />
>> 
>>        <Policies>
>>           <OnStartupTriggeringPolicy minSize="10 MB"/>
>>           <SizeBasedTriggeringPolicy size="10 MB" />
>>        </Policies>
>>     </RollingFile>
>> 
>> 
>> Steps:
>> 
>> Start tomcat7, Log message, reload tomcat7: debug.html are not shown correctly.
>> 
>> "</body></html></table>
>> <br>
>> </body></html>
>> 
>> " are shown twice (attached debug.html log file).
>> 
>> May I know is there anything I didn't set correctly please?
>> 
>> 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
> 
> 



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


Re: 2.6.2 minSize; reload tomcat - html log did not show correctly

Posted by Remko Popma <re...@gmail.com>.
It may be good to create a Jira ticket for this before it drops below my inbox horizon. 

Sent from my iPhone

> On 2016/07/11, at 23:23, Emi <em...@encs.concordia.ca> wrote:
> 
> Hello,
> 
> upgraded to 2.6.2 with minSize setup, when reload tomcat, debug.html are not shown correctly.
> 
> log4j.xml:
> 
>      <RollingFile name="debug_html"
>                   fileName="......"
>                   filePattern="@log4j.debug.html@-%i.html">
>         <HTMLLayout charset="UTF-8" title="title" />
> 
>         <Policies>
>            <OnStartupTriggeringPolicy minSize="10 MB"/>
>            <SizeBasedTriggeringPolicy size="10 MB" />
>         </Policies>
>      </RollingFile>
> 
> 
> Steps:
> 
> Start tomcat7, Log message, reload tomcat7: debug.html are not shown correctly.
> 
> "</body></html></table>
> <br>
> </body></html>
> 
> " are shown twice (attached debug.html log file).
> 
> May I know is there anything I didn't set correctly please?
> 
> 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