[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-user
Subject:    Re: Composite rollingStyle
From:       "Bill McCormick" <wpmccormick () gmail ! com>
Date:       2008-10-03 15:06:47
Message-ID: b93034ac0810030806y1ea88c4aq9de87183e253ec48 () mail ! gmail ! com
[Download RAW message or body]

Anybody have any idea on this?

Thanks!!

On Thu, Oct 2, 2008 at 1:39 PM, Bill McCormick <wpmccormick@gmail.com>wrote:

> Hello,
>
> The Composite rollingStyle doesn't seem to work for the FileAppender as it
> does for the RollingFileAppender. That is, I have one TrittiSvcLog.xml file
> that keeps getting bigger and bigger but I have a current TrittiSvcLog.txt
> and a TrittiSvcLog.txt20081001 from yesterday. Also, is there a way to have
> the file be named TrittiSvcLog-20081001.txt instead?
>
>
> Thanks,
>
> Bill
>
>
>
>  <appender name="FileAppender" type="log4net.Appender.FileAppender">
>     <threshold value="DEBUG" />
>     <file value="Logs/TrittiSvcLog.xml" />
>     <appendToFile value="true" />
>     <rollingStyle value="Composite" />
>     <datePattern value="yyyyMMdd" />
>     <maxSizeRollBackups value="30" />
>     <maximumFileSize value="100MB" />
>     <layout type="log4net.Layout.XmlLayoutSchemaLog4j">
>       <locationInfo value="true" />
>     </layout>
>   </appender>
>   <appender name="RollingFile" type="log4net.Appender.RollingFileAppender">
>     <threshold value="INFO" />
>     <file value="Logs/TrittiSvcLog.txt" />
>     <appendToFile value="true" />
>     <rollingStyle value="Composite" />
>     <datePattern value="yyyyMMdd" />
>     <maxSizeRollBackups value="30" />
>     <maximumFileSize value="100MB" />
>     <layout type="log4net.Layout.PatternLayout">
>       <conversionPattern value="%date{yyyyMMdd HH:mm:ss,fff} %-8timestamp
> %level %thread %logger - %message%newline%exception" />
>     </layout>
>   </appender>
>
>


-- 
ACE-CO
5355 Dietrich Rd.
San Antonio, TX 78219
(210) 661-4111 x512
(800) 676-4111 Toll Free
(210) 662-6177 Fax
(210) 216-6641 Cell
mailto:wpmccormick@ace-co.com
http://www.ace-co.com

[Attachment #3 (text/html)]

<div dir="ltr">Anybody have any idea on this? <br><br>Thanks!!<br><br><div \
class="gmail_quote">On Thu, Oct 2, 2008 at 1:39 PM, Bill McCormick <span \
dir="ltr">&lt;<a href="mailto:wpmccormick@gmail.com">wpmccormick@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div \
dir="ltr">Hello,<br><br>The Composite rollingStyle doesn&#39;t seem to work for the \
FileAppender as it does for the RollingFileAppender. That is, I have one \
TrittiSvcLog.xml file that keeps getting bigger and bigger but I have a current \
TrittiSvcLog.txt and a TrittiSvcLog.txt20081001 from yesterday. Also, is there a way \
to have the file be named TrittiSvcLog-20081001.txt instead?<br>

<br><br>Thanks,<br><br>Bill<br><br><br><br clear="all">&nbsp;&lt;appender \
name=&quot;FileAppender&quot; \
type=&quot;log4net.Appender.FileAppender&quot;&gt;<br>&nbsp;&nbsp;&nbsp; \
&lt;threshold value=&quot;DEBUG&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;file \
value=&quot;Logs/TrittiSvcLog.xml&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;appendToFile value=&quot;true&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;rollingStyle value=&quot;Composite&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;datePattern value=&quot;yyyyMMdd&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;maxSizeRollBackups value=&quot;30&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;maximumFileSize value=&quot;100MB&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;layout \
type=&quot;log4net.Layout.XmlLayoutSchemaLog4j&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;locationInfo value=&quot;true&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; \
&lt;/layout&gt;<br>&nbsp; &lt;/appender&gt;<br>

&nbsp; &lt;appender name=&quot;RollingFile&quot; \
type=&quot;log4net.Appender.RollingFileAppender&quot;&gt;<br>&nbsp;&nbsp;&nbsp; \
&lt;threshold value=&quot;INFO&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;file \
value=&quot;Logs/TrittiSvcLog.txt&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;appendToFile \
value=&quot;true&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;rollingStyle value=&quot;Composite&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;datePattern value=&quot;yyyyMMdd&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;maxSizeRollBackups value=&quot;30&quot; \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;maximumFileSize value=&quot;100MB&quot; /&gt;<br>

&nbsp;&nbsp;&nbsp; &lt;layout \
type=&quot;log4net.Layout.PatternLayout&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;conversionPattern value=&quot;%date{yyyyMMdd HH:mm:ss,fff} %-8timestamp %level \
%thread %logger - %message%newline%exception&quot; /&gt;<br>&nbsp;&nbsp;&nbsp; \
&lt;/layout&gt;<br>

&nbsp; &lt;/appender&gt;<br><br>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>ACE-CO<br>5355 Dietrich Rd.<br>San \
Antonio, TX 78219<br>(210) 661-4111 x512<br>(800) 676-4111 Toll Free<br>(210) \
662-6177 Fax<br>(210) 216-6641 Cell<br>mailto:<a \
href="mailto:wpmccormick@ace-co.com">wpmccormick@ace-co.com</a><br> <a \
href="http://www.ace-co.com">http://www.ace-co.com</a> <br> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic