Configure log4j Appender Properties

2007-06-24 Thread samurfriend
I'm using log4j1.2.8, is there anyway to check for a particular appender, say RollingFileAppender, whether it has a property, say datePattern programmatically? And then my check is passed, then i need to configure any values... Will this be possible with log4j API's? Your help appreciated.

Re: JUnit testing of output logged with log4j?

2007-06-24 Thread Bob Jacobsen
At 7:13 AM -0500 6/24/07, Jacob Kjome wrote: I'm not sure whether I'm interpreting your request correctly, but I think you are saying that some of your non-JUnit code might spit out errors by the simple fact that you are testing "expected failures" by intentionally putting objects in a state wh

Rollover + Filename + Timezone

2007-06-24 Thread ZalleCool
Hi there, I am using log4j-1.2.8 and don't see ourselves upgrading to new versions any time soon. I am trying to roll files hourly using DailyRollingFileAppender in BST (British Summer Timezone) which is GMT + 1. My problem is that sometimes a rolled over log file for the 10th hour starts showi

Re: Other port of log4j

2007-06-24 Thread Trevor Miller
Try http://log4delphi.sourceforge.net On 6/24/07, Arik Dasen <[EMAIL PROTECTED]> wrote: There's a well established port of log4j for Delphi: http://log4d.sourceforge.net May be woth adding it to the list of "other ports" regards Arik Dasen (new maintainer of log4d at sourceforge) --

Re: JUnit testing of output logged with log4j?

2007-06-24 Thread Jacob Kjome
I'm not sure whether I'm interpreting your request correctly, but I think you are saying that some of your non-JUnit code might spit out errors by the simple fact that you are testing "expected failures" by intentionally putting objects in a state where they should fail to make sure they do f

Other port of log4j

2007-06-24 Thread Arik Dasen
There's a well established port of log4j for Delphi: http://log4d.sourceforge.net May be woth adding it to the list of "other ports" regards Arik Dasen (new maintainer of log4d at sourceforge) - To unsubscribe, e-mail: [EMAIL

Re: Log4j1.3 help!!

2007-06-24 Thread Jacob Kjome
What do you expect when you set the ROOT logger to "debug"? That means *all* loggers are set to "debug". I suggest setting the ROOT logger to "warn" and setting individual hierarchies to debug. If your company uses the package namespace com.mycompany, then create a logger like so...

Re: Log4j1.3 help!!

2007-06-24 Thread Jacob Kjome
What do you expect when you set the ROOT logger to "debug"? That means *all* loggers are set to "debug". I suggest setting the ROOT logger to "warn" and setting individual hierarchies to debug. If your company uses the package namespace com.mycompany, then create a logger like so...