Re: RollingFileAppender + DirectWriteRolloverStrategy does not rollover file

2020-04-27 Thread Ralph Goers
If you want both time and size then you need one %d pattern that reflects the interval for when you want rotation to occur - namely _MM_dd. Normally you would use %I in the pattern to increment a counter during the interval. But I suspect if you use ${date} in the file name of the pattern an

Re: RollingFileAppender + DirectWriteRolloverStrategy does not rollover file

2020-04-27 Thread Benjamin Asbach
Hi Ralph, thanks for taking some time. Basically I want a log which rotates at midnight and is limited in file size. So I'd expect that these files are generated: /2020_04_27/msg-2020_04_27-12_17_00.log (application started) /2020_04_27/msg-2020_04_27-18_13_30.log (log file exceed 250MB) /202

Re: RollingFileAppender + DirectWriteRolloverStrategy does not rollover file

2020-04-27 Thread Ralph Goers
The %d pattern only applies to time based rollovers. If you want the time in a size based rollover pattern then use the date lookup filePattern=/tmp/msg-$${date:_MM_dd}/nps-message-$${date:_MM_dd_HH_mm_ss}.log Ralph > On Apr 27, 2020, at 10:39 AM, Benjamin Asbach wrote: > > I guess

Re: RollingFileAppender + DirectWriteRolloverStrategy does not rollover file

2020-04-27 Thread Benjamin Asbach
I guess I've been glad to early. ``` appender.msglog.type = RollingFile appender.msglog.name = localmsglog appender.msglog.filePattern = /tmp/msg-%d{_MM_dd}/nps-message-%d{_MM_dd_HH_mm_ss}.log appender.msglog.layout.type = log4j1xmllayout appender.msglog.policies.type = Policies appende

Re: RollingFileAppender + DirectWriteRolloverStrategy does not rollover file

2020-04-27 Thread Benjamin Asbach
I guess I found a solution: ``` appender.msglog.type = RollingFile appender.msglog.name = localmsglog appender.msglog.filePattern = /tmp/msg-%d{_MM_dd}/nps-message-%d{_MM_dd_HH_mm_ss}.log appender.msglog.layout.type = log4j1xmllayout appender.msglog.policies.type = Policies appender.msg

Re: RollingFileAppender not working consistently

2017-05-25 Thread Ralph Goers
Please see https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces . We recommend you upgrade to Log4j 2. Log4j 1 has not been supported for years. Ralph > On May 25, 2017, at 9:55

Re: RollingFileAppender not working consistently

2017-05-25 Thread AlexD
I'm using log4j-extras log4j apache-log4j-extras ${log4j.version} and following configuration log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.File=C:/logs/app.log log4j.appender.file.Append=true log4j.appender.file.RollingPolicy=org.apache.log4j.rolling.TimeBa

Re: RollingFileAppender maxDelayMillis?

2015-11-11 Thread Benjamin Jaton
Thanks a lot for the explanation, much clearer now. Here is the JIRA: https://issues.apache.org/jira/browse/LOG4J2-1197 On Tue, Nov 10, 2015 at 11:39 PM, Remko Popma wrote: > On Wed, Nov 11, 2015 at 2:34 PM, Benjamin Jaton > wrote: > > > On Tue, Nov 10, 2015 at 6:13 PM, Remko Popma > > wrote:

Re: RollingFileAppender maxDelayMillis?

2015-11-10 Thread Remko Popma
On Wed, Nov 11, 2015 at 2:34 PM, Benjamin Jaton wrote: > On Tue, Nov 10, 2015 at 6:13 PM, Remko Popma > wrote: > > > To check my understanding: the problem is that with bufferedIO=true the > > buffer contains log events that you want to see, but the buffer is only > > flushed to disk when it is

Re: RollingFileAppender maxDelayMillis?

2015-11-10 Thread Benjamin Jaton
On Tue, Nov 10, 2015 at 6:13 PM, Remko Popma wrote: > To check my understanding: the problem is that with bufferedIO=true the > buffer contains log events that you want to see, but the buffer is only > flushed to disk when it is full (which is not frequent enough); is that > correct? > Yes that

Re: RollingFileAppender maxDelayMillis?

2015-11-10 Thread Remko Popma
To check my understanding: the problem is that with bufferedIO=true the buffer contains log events that you want to see, but the buffer is only flushed to disk when it is full (which is not frequent enough); is that correct? If you use AsyncAppender or Async Loggers, the buffer will be flushed w

Re: RollingFileAppender maxDelayMillis?

2015-11-10 Thread Gary Gregory
And more generally, can all appenders benefit from such a setting? Gary On Tue, Nov 10, 2015 at 11:04 AM, Benjamin Jaton wrote: > Hi, > > I am wondering if it would make sense to have a maxDelayMillis parameter > for the RollingFileAppender (like FlumeAppender). > > Use case: > You have a web s

Re: RollingFileAppender appears to be losing log entries

2014-11-02 Thread Ralph Goers
We have attempted to list the dependencies at http://logging.apache.org/log4j/2.x/runtime-dependencies.html and http://logging.apache.org/log4j/2.x/faq.html#which_jars . You

Re: RollingFileAppender appears to be losing log entries

2014-11-02 Thread Shawn Heisey
On 11/2/2014 12:57 PM, Ralph Goers wrote: > 1. I would check bugzilla to see if anyone has reported this. I don’t recall > seeing anything like it in the last 4 years. > 2. Log4j 1.x is not actively maintained. Even if you find that it is a bug it > is unlikely to ever be fixed. Upgrading to Log

Re: RollingFileAppender appears to be losing log entries

2014-11-02 Thread Ralph Goers
1. I would check bugzilla to see if anyone has reported this. I don’t recall seeing anything like it in the last 4 years. 2. Log4j 1.x is not actively maintained. Even if you find that it is a bug it is unlikely to ever be fixed. Upgrading to Log4j 2 is recommended. Ralph > On Nov 2, 2014, at

Re: RollingFileAppender

2014-07-29 Thread chouaffe frannck-edmond
ets 100KB big. Edmond Chouaffé Mobile +49 172 655 06 01 De : Remko Popma À : Log4J Users List Envoyé le : Mardi 29 juillet 2014 10h28 Objet : Re: RollingFileAppender Is this log4j 1.2.x or 2.0? And what do you mean by > log4j does write in multip

Re: RollingFileAppender

2014-07-29 Thread Remko Popma
Is this log4j 1.2.x or 2.0? And what do you mean by > log4j does write in multiple log file simultaniously? Sent from my iPhone > On 2014/07/29, at 17:18, chouaffe frannck-edmond > wrote: > > Hi Guys, > > I have been struggling to get my log4j.xml file working as intended. > I expect the lo

Re: RollingFileAppender vs CompositeRollingAppender

2012-10-05 Thread Tushar Kapila
can you put a Class.forName("org.apache.log4j.CompositeRollingAppender") before any logging starts maybe a test app with main with the same classpath maybe the log4j jar is sealed (manifest entry http://docs.oracle.com/javase/tutorial/deployment/jar/sealman.html ) On 10/6/2012 12:04 AM, Pra

Re: RollingFileAppender vs CompositeRollingAppender

2012-10-05 Thread Praveen Sake
Hi Tim, Thanks for your response. I already have both the CompositeFileAppender class file in the classpath, and the log4j.jar (which has RollingFileAppender class) in the classpath. But only the log4j.jar class is getting loaded, but not the CompositeFileAppender class. Regards, Praveen On Fri,

Re: RollingFileAppender vs CompositeRollingAppender

2012-10-05 Thread Tim Watts
On Fri, 2012-10-05 at 16:32 +0530, Praveen Sake wrote: > Hi, > > In our project we are using both RollingFileAppender and > CompositeFileAppender. Both these class files are loaded into classpath, > but only RollingFileAppender is being detected. And, for > CompositeRollingAppender I'm getting Cla

Re: RollingFileAppender: Using log4j in 2 separate classpath while logging in a single file.

2011-02-11 Thread Hugo Villeneuve
Hello Curt I read this bug report before. It is about the 2 separate Process accessing the same file. My problem is when log4j is in 2 separate classloader and writing in the same File. Do you know if bug report also apply to my problem? When running in 2 separate classpath on a single jvm, they

Re: RollingFileAppender: Using log4j in 2 separate classpath while logging in a single file.

2011-02-10 Thread Curt Arnold
On Feb 10, 2011, at 12:48 PM, Hugo Villeneuve wrote: > Hello > > > > I have a different behaviour when I use DailyRollingFileAppender vs the > RollingFileAppender. > > > > My setup is the following: Running in WAS (on AIX 6.1), I have 2 separate > WebApplication. Each have a Log4j Instance

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Corey Scott
have backup log files being maintained at the point of rollover of the current log file. HTH, Simon From: Jacob Kjome To: Log4J Users List Sent: Thu, 14 October, 2010 16:38:31 Subject: Re: RollingFileAppender + TimeBasedRollingPolicy Not that I can

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Simon Park
log file. HTH, Simon From: Jacob Kjome To: Log4J Users List Sent: Thu, 14 October, 2010 16:38:31 Subject: Re: RollingFileAppender + TimeBasedRollingPolicy Not that I can see. I think a FixedWindowRollingPolicy + SizeBasedTriggeringPolicy would do what you need.

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Jacob Kjome
Not that I can see. I think a FixedWindowRollingPolicy + SizeBasedTriggeringPolicy would do what you need. Of course, it won't roll based on time, but on size. Basically, you'd get a maximum backup of 12 (or less depending on what you configure) archived log files, which is hardly different tha

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Ledger, John St W
Corey, I couldn't find a way to do that either. I made some changes to the DailyRollingFileAppender class to meet my needs. See the attachment. This class creates a new log file each day. The log file is in the user directory. Yesterday's log file is renamed, and then 6 total log files are ret

Re: RollingFileAppender not working consistently

2010-04-13 Thread Maarten Bosteels
Just re-checked our code, and it wasn't exactly behaving as described above. I said "no renaming necessary" but our log-files are renamed exactly once: a timestamp is added to the filename when rolling over. The advantage is that the name of the 'current' log-file is predictable, so you can do "t

Re: RollingFileAppender not working consistently

2010-04-13 Thread Curt Arnold
On Apr 13, 2010, at 2:25 AM, Mohan.Radhakrishnan wrote: > > 1. I had to copy the newer DTD from the Apache extras JAR to the log4j JAR. > 'rollingPolicy' was not recognized by the older DTD. Is this right ? rollingPolicy is in the DTD in log4j 1.2.16 which can be downloaded from http://www.apa

RE: RollingFileAppender not working consistently

2010-04-13 Thread Mohan.Radhakrishnan
1. I had to copy the newer DTD from the Apache extras JAR to the log4j JAR. 'rollingPolicy' was not recognized by the older DTD. Is this right ? 2. Put both JARS in the classpath. This warning is shown though. log4j:WARN Continuable parsing error 182 and column 23 log4j:WARN The content of elem

RE: RollingFileAppender not working consistently

2010-04-12 Thread Mohan.Radhakrishnan
This seems to be working now. There is no need for renaming a file unless I am missing something ! I get one timestamped file for a day. Now the next step could to combine with a SizeBasedTriggeringPolicy Mohan.Radhakrishnan wrote: > > TimeBasedRollingPolicy seems to be the solution. Correct

RE: RollingFileAppender not working consistently

2010-04-12 Thread Mohan.Radhakrishnan
TimeBasedRollingPolicy seems to be the solution. Correct me if I am wrong. Extract from the doc. During November 23rd, 2004, logging output will go to * the file /wombat/foo.2004-11-23. At midnight and for * the rest of the 24th, logging output will be directed to * /wombat/

RE: RollingFileAppender not working consistently

2010-04-10 Thread Robinson, Brian L (IS)
] Sent: Saturday, April 10, 2010 7:01 AM To: Log4J Users List Subject: Re: RollingFileAppender not working consistently On Fri, Apr 9, 2010 at 7:15 AM, Mohan.Radhakrishnan wrote: > > I have looked at the source here and I have a question. > > > Since the log4j extras has other methods

Re: RollingFileAppender not working consistently

2010-04-10 Thread Maarten Bosteels
On Fri, Apr 9, 2010 at 7:15 AM, Mohan.Radhakrishnan wrote: > > I have looked at the source here and I have a question. > > > Since the log4j extras has other methods of rolling over that are time > based > I thought if we schedule the rename for a lean period when there is not > much > log file up

RE: RollingFileAppender not working consistently

2010-04-08 Thread Mohan.Radhakrishnan
I have looked at the source here and I have a question. Since the log4j extras has other methods of rolling over that are time based I thought if we schedule the rename for a lean period when there is not much log file updates then there would be no problem. Am I on the right track ? What about

RE: RollingFileAppender not working consistently

2010-04-05 Thread Mohan.Radhakrishnan
Don't mean to hijack this thread. We have a pressing need to move to DailyRollingFileAppender due to the same problems mentioned in this thread. Since midnight is not suitable due to heavy logging we want to use DailyRollingFileAppender at midday or some other time. Is that possible ? I refer h

RE: RollingFileAppender not working consistently

2010-04-05 Thread Mohan.Radhakrishnan
We see the same problem. Sometimes several successive attempts to rename fail. Actually we also have multithreaded application and we think that one of the threads could be writing when the file is being renamed. We are thinking of using the DailyRollingAppender. Is that an alternative ? -- Vie

RE: RollingFileAppender not working consistently

2010-03-31 Thread Robinson, Brian L (IS)
minutes) a while writing a lot of data to the log file. If that is the case, any thoughts on how I might work around it? -Original Message- From: Curt Arnold [mailto:curt.ar...@gmail.com] On Behalf Of Curt Arnold Sent: Wednesday, March 31, 2010 1:14 AM To: Log4J Users List S

RE: RollingFileAppender not working consistently

2010-03-31 Thread DOUTCH GARETH-GDO003
Yes. It happens to me (on Windows). I have several machines running my application and occasionally I will get a very large log file with RollingFileAppender. -Original Message- From: Robinson, Brian L (IS) [mailto:brian.robin...@ngc.com] Sent: 30 March 2010 20:25 To: log4j-user@logging.

Re: RollingFileAppender not working consistently

2010-03-30 Thread Curt Arnold
You did not mention your platform, but I believe that behavior has been observed on Windows platforms when the file is open by another process which will result in any attempt to rename the file to fail. Since renaming never takes place, the file can never successfully roll. ---

RE: RollingFileAppender but keeping some data

2009-12-11 Thread Geir.Ovsttun
Tobias, I my opinion what you are doing is maybe mixing two issues that should be kept separate: The generation of events The storages of such events in an underlying storage mechanism The operational use of events in a GUI Maybe you should consider using a database ap

Re: RollingFileAppender broken

2008-03-27 Thread James A. N. Stauffer
Try using forward slashes and setting debug to true. On Thu, Mar 27, 2008 at 3:07 PM, Eric Hamacher <[EMAIL PROTECTED]> wrote: > Hello: > > I cannot get my log4j to log to a file. It will log to the console. > Below is my log4j.xml. Any ideas? Thanks. > > > http://jakarta.apache.org/log4j/"; >

RE: RollingFileAppender

2007-04-27 Thread Andrew Marlow
Cheung, Quinn wrote: > Is there a file appender that uses a FIFO type of > record-rolling? What I don't like about the > RollingFileAppender is that it's not a FIFO per log entry. > When all the log files are full, RollingFileAppender erases > the entire contents of the oldest file instead of remov

RE: RollingFileAppender problem

2006-12-07 Thread CHANG Shuh
Try to add/specify the Threshold parameter for your appender R like: and see if that'd trigger your message to be logged. Shuh -Original Message- From: garima015 [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 4:15 PM To: log4j-user@logging.apache.org Subject: Rolling

Re: RollingFileAppender problem

2006-12-06 Thread Jacob Kjome
I agree with James. Remove the filter. I don't use filters much, but it seems to me that you've matched the entire range of levels from "debug" all the way to "fatal" and then declared all those levels to *not* be accepted upon match, effectively disabling the entire appender. And I"m not

Re: RollingFileAppender problem

2006-12-06 Thread James Stauffer
Do you get logs to the console? Try removing the filters on the appender to see if that helps. On 12/6/06, garima015 <[EMAIL PROTECTED]> wrote: I am using RollingFileAppender to log the loggers in File .File is getting created at the place but nothing is coming in that File .Can somebody pleas

Re: RollingFileAppender Not rolling over

2006-11-06 Thread vincentw
Does the header print out depend on logging level?? What I'm seeing is if I set the level to anything but debug the header info will not be displayed. Anyone come across this or have any ideas? Thanks vincentw wrote: > > Hi, I'm having trouble with thr RFA not rollingover. Here is my config

Re: RollingFileAppender Not rolling over

2006-11-02 Thread vincentw
Yes it does work when using standard layout class. James Stauffer wrote: > > Does it work if you use the standard layout class? > > On 11/1/06, vincentw <[EMAIL PROTECTED]> wrote: >> >> Hi, I'm having trouble with thr RFA not rollingover. Here is my config >> >> >> >> >> http://jakarta.apac

Re: RollingFileAppender Not rolling over

2006-11-02 Thread James Stauffer
Does it work if you use the standard layout class? On 11/1/06, vincentw <[EMAIL PROTECTED]> wrote: Hi, I'm having trouble with thr RFA not rollingover. Here is my config http://jakarta.apache.org/log4j/"; debug="false">

Re: RollingFileAppender that zips?

2006-11-02 Thread Wim Deblauwe
Documentation seems to be here: http://logging.apache.org/log4j/docs/api-1.3/org/apache/log4j/rolling/TimeBasedRollingPolicy.html But it seems you need to use a time-based rolling policy. Is it possible to use this with the normal RollingFileAppender? Also, it seems that this is only added in 1.3

Re: RollingFileAppender that zips?

2006-11-02 Thread Wim Deblauwe
Thanks for the info. I could not find this in the documentation. regards, Wim 2006/11/2, Dirk Ooms <[EMAIL PROTECTED]>: Yes you can zip files when they are rolled over. Put a '.gz' extension in the FileNamePattern. - To unsu

Re: RollingFileAppender that zips?

2006-11-02 Thread Dirk Ooms
Yes you can zip files when they are rolled over. Put a '.gz' extension in the FileNamePattern. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RollingFileAppender fails to rollover on Win2k Tomcat as service

2006-07-26 Thread Glenn Holmer
On Tuesday 25 July 2006 16:55, Dan Schlossberg wrote: > My RollingFileAppender recently stopped working but only when running > Tomcat as a service in Windows. What its doing is just overwriting > the existing log once it reaches the MaxFileSize threshold. I reported a very similar problem last Ma

RE: RollingFileAppender not rolling over

2006-06-19 Thread Levy, Jeremy
Looks like this is an issue: http://marc.theaimsgroup.com/?l=log4j-user&m=106321621416549&w=2 Giving that a shot and seeing what happens... -Original Message- From: Levy, Jeremy Sent: Monday, June 19, 2006 2:08 PM To: Log4J Users List Subject: RollingFileAppender not rolling over Belo

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
appender and voila! log4j.logger.mypackage=DEBUG, newAppender Thanks for all the responses... Rob. -Original Message- From: Alva Powell [mailto:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 12:12 PM To: Log4J Users List Subject: RE: RollingFileAppender - File not created Use this in

RE: RollingFileAppender - File not created

2006-04-06 Thread Alva Powell
Use this in your config file Log4j.debug=true Then you will see what log4j is loading. --Alva -Original Message- From: Rob Elliott [mailto:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 9:07 AM To: Log4J Users List Subject: RE: RollingFileAppender - File not created Good point, I

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
AM To: Log4J Users List Subject: Re: RollingFileAppender - File not created But back to your configuration file: What is the purpose of the below two lines? Maybe you do not even have your appender configured! log4j.rootLogger=INFO, A1 log4j.rootCategory=INFO, A2 Norbert On 4/6/06, Alva Powell

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
o:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 8:12 AM > To: Log4J Users List > Subject: RE: RollingFileAppender - File not created > > Thanks for your reply. > > I did try c:\\SMSTest.log and now just tried c:/SMSTest.log but no file. > > I debug the following code

RE: RollingFileAppender - File not created

2006-04-06 Thread Alva Powell
:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 8:12 AM To: Log4J Users List Subject: RE: RollingFileAppender - File not created Thanks for your reply. I did try c:\\SMSTest.log and now just tried c:/SMSTest.log but no file. I debug the following code using Eclipse and the LOG.debug statement

RE: RollingFileAppender - File not created

2006-04-06 Thread Rob Elliott
S.sar: The mediaURL is " + mediaURL ); } -Original Message- From: Norbert Toth-Gati [mailto:[EMAIL PROTECTED] Sent: Thursday, April 06, 2006 11:06 AM To: Log4J Users List Subject: Re: RollingFileAppender - File not created Hi Rob, you should specifiy the File property as one o

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
Hi Rob, you should specifiy the File property as one of the following: log4j.appender.A1.File=c:/SMSTest.log or log4j.appender.A1.File=c:\\SMSTest.log This is a specific problem for MS Windows platform. Regards, Norbert On 4/6/06, Rob Elliott <[EMAIL PROTECTED]> wrote: > Here is my properties f

Re: RollingFileAppender JRE File.renameTo() bug?

2006-03-24 Thread Glenn Holmer
On Thursday 23 March 2006 22:00, Bill Laird wrote: > Has anybody been seeing increased incidents of this under JRE 1.5 ? > We are using an older version of log4J. Are there any workarounds in > the newer versions? We were already running 1.5.0_06 when we started using log4j on the app I mentione

RE: RollingFileAppender JRE File.renameTo() bug?

2006-03-23 Thread White-Smith, Wayne F
We have been experiencing this sort of problem with the DailyRollingFileAppender overwriting log files. We are using WebLogic 8.1 with the 1.4.2_05 JDK on the solaris operating system. -Original Message- From: Bill Laird [mailto:[EMAIL PROTECTED] Sent: Friday, 24 March 2006 12:01 PM

Re: RollingFileAppender DST

2006-03-22 Thread James Stauffer
No, but you could easily test by changing your clock to just before the change to DST and then have a program that logs every ms. On 3/22/06, Kamal Ahmed <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how the RollingFileAppender behaves/handles DST (Daylight > Saving Time)? > > Thanks, > >

RE: RollingFileAppender trigger to rollover

2006-03-01 Thread Bender Heri
Yes, since there is no timer running which triggers the rollover at a certain point of date. Only if a new log event occurs the appender checks the date and decides to rollover if needed. Heri > -Original Message- > From: Dirk Ooms [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 01, 2

Re: RollingFileAppender did not create the rolling file and where does error logs to?

2006-02-02 Thread Jacob Kjome
Quoting Michelle Xue <[EMAIL PROTECTED]>: > In my program, I use RollingFileAppender to log(in window), and it > didn't create the rolling files when rollOver() is called, and I suspect > it's some lock problems in window. Anyone knows how to solve that? > > Also, in the source code, RollingFileA

RE: RollingFileAppender help

2005-12-20 Thread Philip Denno
For application start, you don't need to subclass. Just find the entry point in your application and write the header into the file. To write into it at rollover I think you do need to subclass and reimplement the rollOver method. Cheers, Philip. -Original Message- From: krishna kumar [

Re: RollingFileAppender and DailyFileAppender combo usage

2005-11-21 Thread shy guy
you can try CompositeRollingAppender http://devdaily.com/java/jwarehouse/jakarta-log4j-1.2.8/contribs/KevinSteppe/CompositeRollingAppender.shtml

RE: RollingFileAppender and DailyFileAppender combo usage

2005-11-17 Thread Philip Denno
Configuration of the existing classes would probably not be possible, however subclassing RollingFileAppender to create your own appender should work. If you reimplement the rollOver method, then when the file reaches 10 MB your class will be called and you could perform the renaming/compression/co

RE: RollingFileAppender does not roll

2005-09-14 Thread Jitendra Kharche
Thursday, September 15, 2005 3:07 AM To: Log4J Users List Subject: RE: RollingFileAppender does not roll Make sure you don't have multiple instances running Regards, O -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 9:32 AM To

RE: RollingFileAppender does not roll

2005-09-14 Thread Otto Leung
Make sure you don't have multiple instances running Regards, O -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 9:32 AM To: Log4J Users List Subject: RE: RollingFileAppender does not roll How can I close the file from withi

RE: RollingFileAppender does not roll

2005-09-14 Thread Jitendra Kharche
How can I close the file from within the code? I think this is the job of Log4j. Regards, Jitendra -Original Message- From: 洪春植 [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 2:52 PM To: Log4J Users List Subject: Re: RollingFileAppender does not roll see if you can rename

Re: RollingFileAppender does not roll

2005-09-13 Thread 洪春植
see if you can rename your logfile manually, if can't, may be your threaed class dosen't close the logfile properly. On Tue, 13 Sep 2005 14:49:16 +0530 "Jitendra Kharche" <[EMAIL PROTECTED]> wrote: > Hi, > > I am facing a problem with DailyRollingFileAppender. It does not roll. > When Log4j tri

RE: RollingFileAppender with stable filenames?

2005-08-15 Thread Iain.Shepherd
> > So I'd like a RollingFileAppender that uses stable filenames, in > > sequence: > > > > my.log.1 << Deleted, because MaxBackupIndex=2 > > my.log.2 > > my.log.3 > > my.log.4 << Current file > > > > > > There are two different RollingFileAppender implementations > in log4j: > org.apache.log4j

Re: RollingFileAppender with stable filenames?

2005-08-14 Thread Curt Arnold
On Aug 14, 2005, at 9:23 AM, [EMAIL PROTECTED] wrote: Hi, I'm writing a program which will frequently scan and parse log files. I want to use RollingFileAppender to write them, but I'm not 100% happy with its behaviour. I'd have to allow for all the filenames to change between one scan and

RE: RollingFileAppender not work

2005-07-25 Thread 洪春植
ect when we perform the operation described in 1) ? regards > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 26, 2005 12:32 AM > To: Log4J Users List > Subject: Re: RollingFileAppender not work > > Can you just make the batch

Re: RollingFileAppender not work

2005-07-25 Thread James Stauffer
Can you just make the batch program only grab the backed-up files (not the current file)? On 7/25/05, 洪春植 <[EMAIL PROTECTED]> wrote: > hello, all > > We are now using log4j.RollingFileAppender class to store logs at server > side, > and we have a batch program which gethers those log files runnin

Re: RollingFileAppender

2005-05-23 Thread Curt Arnold
On May 23, 2005, at 10:31 PM, Rohit Sonalkar wrote: Hi, The RollingFileAppender rolls over files when they reach a certain size. What is the technique it uses to do the roll over if for e.g. the maxBackupIndex is 10 and there are currently 10 files? Does it simply delete logs.out.10 and re

RE: RollingFileAppender

2005-03-18 Thread Jason Roscoe
l the help!! I could attach my .jar file if that would help. -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 8:43 AM To: Log4J Users List Subject: Re: RollingFileAppender That will give you grep and many other unix utils so that you coul

Re: RollingFileAppender

2005-03-18 Thread James Stauffer
I downloaded this and added usr/bin/wbin to my > windows path variable and that didn't help anything > > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 16, 2005 3:56 PM > To: Log4J Users List > Subject: Re: Roll

RE: RollingFileAppender

2005-03-17 Thread Jason Roscoe
What will this give me? I downloaded this and added usr/bin/wbin to my windows path variable and that didn't help anything -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:56 PM To: Log4J Users List Subject: Re: RollingFileApp

Re: RollingFileAppender

2005-03-16 Thread James Stauffer
"Category.class" > > Note: the double quotes ("") are necessary. > > Mike > > > -Original Message- > > From: Jason Roscoe [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, March 16, 2005 11:54 AM > > To: 'Log4J Users List' > >

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
Sorry, I got it to work, I get this back org/apache/log4j/Category.class org/apache/log4j/spi/RootCategory.class -Original Message- From: Rieser, Michael (SCI TW) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 3:39 PM To: Log4J Users List Subject: RE: RollingFileAppender On

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
4J Users List Subject: RE: RollingFileAppender On Windows try: jar -tf log4j-1.2.9.jar | find "Category.class" Note: the double quotes ("") are necessary. Mike > -Original Message- > From: Jason Roscoe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 16

RE: RollingFileAppender

2005-03-16 Thread Rieser, Michael \(SCI TW\)
On Windows try: jar -tf log4j-1.2.9.jar | find "Category.class" Note: the double quotes ("") are necessary. Mike > -Original Message- > From: Jason Roscoe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 16, 2005 11:54 AM > To: 'Log4J Users Lis

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
do with my windows classpath missing something? -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 12:34 PM To: Log4J Users List Subject: Re: RollingFileAppender On Mar 16, 2005, at 8:12 AM, Jason Roscoe wrote: > > I tried using 1.2.9 (stable

Re: RollingFileAppender

2005-03-16 Thread James Stauffer
lasspath (rmember, > I am running this on a windows machine right now). > > Where do I change Category to Logger? In my application, I have > > import org.apache.log4j.Logger; > > -Original Message- > From: Curt Arnold [mailto:[EMAIL PROTECTED] > Sent: Wednesday,

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 12:34 PM To: Log4J Users List Subject: Re: RollingFileAppender On Mar 16, 2005, at 8:12 AM, Jason Roscoe wrote: > > I tried using 1.2.9 (stable) and I was able to get the > RollingFileA

Re: RollingFileAppender

2005-03-16 Thread Curt Arnold
On Mar 16, 2005, at 8:12 AM, Jason Roscoe wrote: I tried using 1.2.9 (stable) and I was able to get the RollingFileAppend to work. When I try running my application from a command line, I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Category Here i

RE: RollingFileAppender

2005-03-16 Thread Jason Roscoe
CTED] Sent: Tuesday, March 15, 2005 4:26 PM To: Log4J Users List Subject: Re: RollingFileAppender On Mar 15, 2005, at 2:58 PM, Jason Roscoe wrote: > > We are using log4j 1.3 Alpha 3, so what all will I need to do? > I was hoping the analysis would get you off and running by yourself.

Re: RollingFileAppender

2005-03-15 Thread Curt Arnold
On Mar 15, 2005, at 2:58 PM, Jason Roscoe wrote: We are using log4j 1.3 Alpha 3, so what all will I need to do? I was hoping the analysis would get you off and running by yourself. You have to choose an option: Upgrade the the CVS HEAD and remove the ".rolling" from the classname. Configure the new

RE: RollingFileAppender

2005-03-15 Thread Jason Roscoe
We are using log4j 1.3 Alpha 3, so what all will I need to do? -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 15, 2005 3:57 PM To: Log4J Users List Subject: Re: RollingFileAppender On Mar 15, 2005, at 2:21 PM, Jason Roscoe wrote: > > I am

Re: RollingFileAppender

2005-03-15 Thread Curt Arnold
On Mar 15, 2005, at 2:21 PM, Jason Roscoe wrote: I am brand spanking new to log4j. I have the following configuration file: # Set root category priority to DEBUG and set its only appender to Console log4j.rootCategory=DEBUG, Console, R # Console is set to be a ConsoleAppender (writes to system

Re: RollingFileAppender when running out of disk-space

2005-03-07 Thread James Stauffer
Since this is even a problem I have to wonder if you are logging too much or running with too little disk space? You could also log to a Database. On Mon, 07 Mar 2005 17:47:52 +1100, Andreas Knecht <[EMAIL PROTECTED]> wrote: > Hello everyone, > > we have recently encountered a problem with log4j

RE: RollingFileAppender when running out of disk-space

2005-03-06 Thread Scott Deboy
(Disclaimer: I wouldn't recommend using log4j1.3 alpha in production, and this email describes a solution that relies on log4j 1.3's features). Assuming it's ok to lose events (as would happen with a fileappender and no disk space), log4j 1.3 provides two new appenders (and matching receivers) t

RE: RollingFileAppender issue

2004-12-03 Thread McDonnell, Colm (MLIM)
From: Ceki Gülcü [mailto:[EMAIL PROTECTED] Sent: 03 December 2004 10:29 To: Log4J Users List; [EMAIL PROTECTED] Subject: Re: RollingFileAppender issue At 06:27 PM 12/2/2004, McDonnell, Colm (MLIM) wrote: [cut] >The problem arises in org.apache.log4j.RollingFileAppender.rollOver() at &

RE: RollingFileAppender issue (update)

2004-12-03 Thread Ceki Gülcü
At 11:07 AM 12/3/2004, you wrote: Quick update: I forgot to mention that I am using log4j v1.2.8 Also, contrary to what I said below the same behaviour is exhibited on both Tomcat and WebLogic on Windows 2000 and Windows XP so it seems to be an OS related issue. The its seems that on Windows NT/XP

Re: RollingFileAppender issue

2004-12-03 Thread Ceki Gülcü
At 06:27 PM 12/2/2004, McDonnell, Colm (MLIM) wrote: [cut] The problem arises in org.apache.log4j.RollingFileAppender.rollOver() at line 139 ( file.renameTo(target); ), using FileMon in parallel with debugging the Log4J code I discovered that the renameTo instruction fails on a shared access violat

RE: RollingFileAppender issue (update)

2004-12-03 Thread McDonnell, Colm (MLIM)
Quick update: I forgot to mention that I am using log4j v1.2.8 Also, contrary to what I said below the same behaviour is exhibited on both Tomcat and WebLogic on Windows 2000 and Windows XP so it seems to be an OS related issue. -Original Message- From: McDonnell, Colm (MLIM) Sent: 02

Re: RollingFileAppender?

2004-08-11 Thread Ceki Gülcü
Philippe, Do you mean like a cyclic buffer? I do not think that is technically feasible with any derived class of FileAppender, including RollingFileAppender. You would need to introduce the notion of an index to the log file. It can be done but not with any existing off-the-shelf appender. HTAT