Problem with RollingFileAppender

2006-06-14 Thread Shriraghavan, Sowmya
Hi all, I'm having an issue with the RollingFileAppender. I've set the rollover size to 25MB, but sometimes, on rollover it renames the file to logfile.log.1, but does not create logfile.log again - it continues writing to logfile.log.1. I end up with missing log files because of this. Is this a

TRACE vs DEBUG

2006-04-28 Thread Shriraghavan, Sowmya
Hi all, Are the DEBUG and TRACE levels the same in log4j? My logger.trace statement gets printed at the debug level - there are some events I want to log at a lower level than debug. I checked Level.java and DEBUG and TRACE both have the same int value = 7 in it. No luck with ALL either - that

RE: [BULK] Question about RollingFileAppender

2006-04-26 Thread Shriraghavan, Sowmya
There seems to be an appender CompositeRollingAppender that was added to a previous version and then removed due to maintenance issues. http://mail-archives.apache.org/mod_mbox/jakarta-log4j-cvs/200203.mbox/% [EMAIL PROTECTED] Sowmya -Original Message- From: Shriraghavan, Sowmya Sent

Logging config files with V1.3

2006-04-26 Thread Shriraghavan, Sowmya
Hi all, I set up the RollingFileAppender with version 1.3 with an xml config file - It works great! But I prefer .properties files, so when I try creating the .properties file, the log doesn't show up and I have no clue why. appender name=TEN class=org.apache.log4j.rolling.RollingFileAppender

Question about RollingFileAppender

2006-04-25 Thread Shriraghavan, Sowmya
Hi all, I need to log files based on size, but instead of rotating them like RollingFileAppender does (myfile.1, myfile.2 etc), I have to just append the current timestamp to the rolled file and that's it. So my rolled over file should look like myfile.04-25-2006-14:20:39.log (where the file

RE: [BULK] Question about RollingFileAppender

2006-04-25 Thread Shriraghavan, Sowmya
then rename the file the way you want. Example: 1) Call super.roll(); -- Creates the standard file. 2) Call File.renameTo(); -- Renames the file from Step 1 to your specific name. Cheers, Philip. -Original Message- From: Shriraghavan, Sowmya [mailto:[EMAIL PROTECTED] Sent

RE: [BULK] Question about RollingFileAppender

2006-04-25 Thread Shriraghavan, Sowmya
implement a TriggerPolicy but I don't know how you would change the name. On 4/25/06, Shriraghavan, Sowmya [EMAIL PROTECTED] wrote: I should have been more specific. I have an idea about what to do about extending RollingFileAppender. I was just checking out the docs for 1.3 alpha 8