Yes, I raised a bug for it. 

Dominik Psenner wrote:
> 
> Have you tried to debug it and file a bug including a nice trace? Here's
> the
> source:
> 
> http://svn.apache.org/viewvc/logging/log4net/
> 
>> -----Original Message-----
>> From: kshah82 [mailto:[email protected]]
>> Sent: Thursday, February 17, 2011 2:30 PM
>> To: [email protected]
>> Subject: RE: Issue with rolling based on date
>> 
>> 
>> Hi Douglas,
>> Sorry , my exmaple configuration does not having minimallock property
>> specified. But in my application, I am already using Minimallock
>> property.
>> But my main problem is that when rolling based on date happens, the size
>> of
>> new rolled file gets generated out of original log file is very very
>> small.
>> I want a help in that area. Any help would be highly appreciated.
>> 
>> Regards,
>> Kinnar
>> 
>> 
>> kshah82 wrote:
>> >
>> > Hi Douglas,
>> >
>> > Thanks for your feedback. If you see my rollingfileappender
>> configuration,
>> > then i am already using Minimallock setting. But my main problem is
>> that
>> > when rolling based on date happens, the size of new rolled file gets
>> > generated out of original log file is very very small. I want a help in
>> > that area. Any help would be highly appreciated.
>> >
>> > Regards,
>> > Kinnar
>> >
>> > Douglas E Wegscheid wrote:
>> >>
>> >> duh. sorry. log4net, not log4j....
>> >>
>> >> | DOUGLAS E. WEGSCHEID // LEAD ENGINEER
>> >> (269) 923-5278 // [email protected]
>> >> "A wrong note played hesitatingly is a wrong note. A wrong note played
>> >> with conviction is interpretation."
>> >>
>> >>
>> >>
>> >> Douglas E Wegscheid <[email protected]>
>> >> 02/16/2011 02:48 PM
>> >> Please respond to
>> >> "Log4NET Dev" <[email protected]>
>> >>
>> >>
>> >> To
>> >> "Log4NET Dev" <[email protected]>
>> >> cc
>> >>
>> >> Subject
>> >> RE: Issue with rolling based on date
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> it's in the log4j 1.2 FAQ:
>> >>
>> >> 24. How do I get multiple process to log to the same file?
>> >>
>> >>
>> >>
>> >> -----Kinnar Shah <[email protected]> wrote: -----
>> >>
>> >> To: Dominik Psenner <[email protected]>, 'Log4NET Dev'
>> >> <[email protected]>
>> >> From: Kinnar Shah <[email protected]>
>> >> Date: 02/16/2011 08:06AM
>> >> cc: Taraka Ravi <[email protected]>, Yash Ganthe
>> >> <[email protected]>, Manish Gupta
>> >> <[email protected]>
>> >> Subject: RE: Issue with rolling based on date
>> >>
>> >> Hi Dominik,
>> >>
>> >> Thanks for your feedback. But logging into single file by multiple
>> >> programs is our primary requirement. Can you please provide any work
>> >> around for this ?
>> >>
>> >> Regards,
>> >> Kinnar
>> >>
>> >> -----Original Message-----
>> >> From: Dominik Psenner [mailto:[email protected]]
>> >> Sent: Wednesday, February 16, 2011 6:20 PM
>> >> To: 'Log4NET Dev'
>> >> Cc: Kinnar Shah
>> >> Subject: RE: Issue with rolling based on date
>> >>
>> >> It would be easier to log into different files for each process.
>> >>
>> >> I didn't take a look at the source, but I believe that the rolling
>> file
>> >> appender lacks a cross-process lock mutex due to performance reasons
>> >> (i.e.
>> >> on my computer it takes ~12ms to acquire a file based mutex).
>> >>
>> >>> -----Original Message-----
>> >>> From: kshah82 [mailto:[email protected]]
>> >>> Sent: Tuesday, February 15, 2011 3:01 PM
>> >>> To: [email protected]
>> >>> Subject: Issue with rolling based on date
>> >>>
>> >>>
>> >>> Hi,
>> >>>
>> >>> We are having 10 programs which are rolling into same log file
>> namlely
>> >>> "logger.log".
>> >>>
>> >>> Below is configuration of RollingFileAppender which we are using :
>> >>>   <appender name="RollFile"
>> type="log4net.Appender.RollingFileAppender">
>> >>>     <threshold value ="ALL"/>
>> >>>     <file value="C:\logger.log" />
>> >>>
>> >>>     <appendToFile value="true" />
>> >>>     <maximumFileSize value="1GB" />
>> >>>     <staticLogFileName value="true"/>
>> >>>     <maxSizeRollBackups value="5" />
>> >>>     <datePattern value=".yyyy-MM-dd-tt&quot;.log&quot;"/>
>> >>>     <rollingStyle value="Composite" />
>> >>>
>> >>>
>> >>>     <layout type="log4net.Layout.PatternLayout">
>> >>>
>> >>>
>> >>>
>> >>>     </layout>
>> >>>   </appender>
>> >>>
>> >>> Our rolling based on date is running at every 12 hour span means at
>> 12
>> >>> Noon
>> >>> and 12 Midnight. Now what is happening when multiple programs try to
>> log
>> >>> into log file at the same time when rolling happens means at 12
>> >>> noon/midnight, then size of file getting rolled is becoming very
>> small
>> >>> compare to original file size(i.e Suppose logger.log is around 1 MB
>> at
>> >> 12
>> >>> noon, when rolling happens the new rolled file which is get generated
>> is
>> >>> around 3 KB or somewhat). So, almost data get lost due to this. This
>> is
>> >>> basically happening when multiple programs try to log into log file
>> at
>> >> the
>> >>> same time of when rolling happens(means at 12 noon/midnight).
>> >>>
>> >>> Please revert back to us on this ASAP as its very important us to go
>> >>> ahead.
>> >>> --
>> >>> View this message in context: http://old.nabble.com/Issue-with-
>> rolling-
>> >>> based-on-date-tp30931115p30931115.html
>> >>> Sent from the Log4net - Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> >> DISCLAIMER
>> >> ==========
>> >> This e-mail may contain privileged and confidential information which
>> is
>> >> the property of Persistent Systems Ltd. It is intended only for the
>> use
>> >> of
>> >> the individual or entity to which it is addressed. If you are not the
>> >> intended recipient, you are not authorized to read, retain, copy,
>> print,
>> >> distribute or use this message. If you have received this
>> communication
>> >> in
>> >> error, please notify the sender and delete all copies of this message.
>> >> Persistent Systems Ltd. does not accept any liability for virus
>> infected
>> >> mails.
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> 
>> --
>> View this message in context: http://old.nabble.com/Issue-with-rolling-
>> based-on-date-tp30931115p30949636.html
>> Sent from the Log4net - Dev mailing list archive at Nabble.com.
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Issue-with-rolling-based-on-date-tp30931115p30969731.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.

Reply via email to