Re: Renaming log file

2008-01-28 Thread James A. N. Stauffer
I'm not sure what you want but RollingFileAppender will make files like what you want. On Jan 27, 2008 10:52 PM, anoobthomas [EMAIL PROTECTED] wrote: Currently I am using Daily Rolling File Appender to generate log files. I want to rename my log file from ABC.log2008-1-27 to ABC.log number

Re: Renaming log file

2008-01-28 Thread Curt Arnold
On Jan 28, 2008, at 6:47 AM, James A. N. Stauffer wrote: I'm not sure what you want but RollingFileAppender will make files like what you want. If you do need to write custom code, I would recommend writing a custom RollingPolicy for the org.apache.log4j.rolling.RollingFileAppender

Write a bean to a file

2008-01-28 Thread Tim Nguyen
Hi, I am a newbie of Log4j. I wonder if anyone has an example or an utility of how to write a bean to a file using Log4j. Thank you! Be a better friend, newshound, and know-it-all with Yahoo! Mobile.

Re: Write a bean to a file

2008-01-28 Thread Curt Arnold
On Jan 28, 2008, at 1:24 PM, Tim Nguyen wrote: Hi, I am a newbie of Log4j. I wonder if anyone has an example or an utility of how to write a bean to a file using Log4j. Thank you! Not quite sure what you are asking. You can pass any Object as the message parameter. Unless you

RE: Write a bean to a file

2008-01-28 Thread Scott Deboy
There is also the rewriteappender in log4j 1.3 and the ReflectionRewritePolicy that will allow you to write arbitrary objects to the file (you don't have to specify which classes to render in the config file). http://logging.apache.org/log4j/companions/receivers/apidocs/org/apache/