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? my custom text %d %5p [%t][%40C::%-20M(%3L)]-%m%n On 3/22/07,

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

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

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: 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

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 target file What

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