Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Curt Arnold
On Mar 23, 2007, at 1:12 PM, James Stauffer wrote: What problem are there? I am using my DateFormatFileAppender extensively in production (web app) and haven't noticed any issues. The comment only applied to org.apache.log4j.RollingFileAppender and org.apache.log4j.DailyRollingFileAppende

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
What problem are there? I am using my DateFormatFileAppender extensively in production (web app) and haven't noticed any issues. On 3/23/07, Curt Arnold <[EMAIL PROTECTED]> wrote: The renaming and close then reopen logic in the rolling file appenders are problematic. There was some discussion

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Curt Arnold
On Mar 23, 2007, at 10:02 AM, Andrew Marlow wrote: guys, I am using DailyRollingFileAppender to have an AM and PM log for each day. This isn't quite what I want but is close enough for now. What I would really like is an appender that writes directly to the target file, rather than it writing

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
DateFormatFileAppender doesn't require you to use sub-directories. You are correct that it doesn't support groupings of hours (watches). Both DateFormateFileAppender and DailyRollingFileAppender use SimpleDateFormat so they only work for the patterns in that class. I suspect that your request is

RE: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Andrew Marlow
James Stauffer wrote: > I wrote an appender that always uses the formatted name. > http://stauffer.james.googlepages.com/DateFormatFileAppender.java > > On 3/23/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: >> guys, >> >> What I >> would really like is an appender that writes directly to the targe

RE: Logger not found exception

2007-03-23 Thread Kailash Chandra
Thanks for your suggestion And sorry for not replying you. But my problem was solved by removing the system path entry For Tomcat home directory. I do not know the reason why it behaved like that But never the less it is working fine now. If any more problems will occur then I will again going to

Re: Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread James Stauffer
I wrote an appender that always uses the formatted name. http://stauffer.james.googlepages.com/DateFormatFileAppender.java On 3/23/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: guys, I am using DailyRollingFileAppender to have an AM and PM log for each day. This isn't quite what I want but is cl

Re: Custom appender question about getRenderedMessage()

2007-03-23 Thread James Stauffer
In your subclass on PatternLayout you can probably change the message by over-riding the format method. On 3/23/07, Bret Schuhmacher <[EMAIL PROTECTED]> wrote: Yes, thanks, that's what I've done. However, I cannot gain access to the fully rendered message, only the original message. I need acc

Enh rqst: a variation on DailyRollingFileAppender

2007-03-23 Thread Andrew Marlow
guys, I am using DailyRollingFileAppender to have an AM and PM log for each day. This isn't quite what I want but is close enough for now. What I would really like is an appender that writes directly to the target file, rather than it writing it to a different file and rolling that file over at a

RE: Custom appender question about getRenderedMessage()

2007-03-23 Thread Bret Schuhmacher
Yes, thanks, that's what I've done. However, I cannot gain access to the fully rendered message, only the original message. I need access to the fully rendered message so I can do what I need to do. Rgds, Bret > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sen

Re: Custom appender question about getRenderedMessage()

2007-03-23 Thread James Stauffer
I would extend PatternLayout to change the message and only extend RollingFileAppender to alter the rollOver functionality. On 3/23/07, Bret Schuhmacher <[EMAIL PROTECTED]> wrote: Thanks, James. I did more digging around and was able to add a "%s" to my ConversionPattern using a custom PatternL

RE: Custom appender question about getRenderedMessage()

2007-03-23 Thread Bret Schuhmacher
Thanks, James. I did more digging around and was able to add a "%s" to my ConversionPattern using a custom PatternLayout subclass. I can get my custom text to print out where I want now. BUT - the custom text is based on the rest of the row - there is some amount of calculation that must be do

Re: Custom appender question about getRenderedMessage()

2007-03-23 Thread James Stauffer
If you want to change the text of the message, you shouldn't do that in the appender -- the layout is a much better place to do that. Can you just change your ConversionPattern to the following and not subclass RollingFileAppender? %d %5p [%t][%40C::%-20M(%3L)]-%m%n On 3/22/07, Bret Schuhmacher

Re: Introduction

2007-03-23 Thread Raúl Santiago
Hello. I've done a quick search in Google on some terms of that log and I've found some clues that lead me to think it is from a logging tool called BC4JDiagnostics. Seems to be related to ORACLE but I've never heard of it before. James Stauffer escribió: I don't use the XML appender f