You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Mark Womack <wo...@adobe.com> on 2004/12/21 18:49:27 UTC

JoranConfigurator tips?

I finished up the implementation of the FileWatchdog last night but before
checking it in for general consumption, I want to make sure there are some
decent test cases in place.  I am going to use the new JoranConfigurator to
configure a FileWatchdog from an xml config file that is being watched.

I am going to start in the test cases, but is there anything in particular I
should be aware of in regards to using the JoranConfigurator?  Is there a
sample xml file that I should use as my starting base?

Thanks,
-Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: JoranConfigurator tips?

Posted by Curt Arnold <ca...@apache.org>.
On Dec 21, 2004, at 11:49 AM, Mark Womack wrote:

> I finished up the implementation of the FileWatchdog last night but 
> before
> checking it in for general consumption, I want to make sure there are 
> some
> decent test cases in place.  I am going to use the new 
> JoranConfigurator to
> configure a FileWatchdog from an xml config file that is being watched.
>
> I am going to start in the test cases, but is there anything in 
> particular I
> should be aware of in regards to using the JoranConfigurator?  Is 
> there a
> sample xml file that I should use as my starting base?
>

I can't give you any help on JoranConfigurator, but I would point out 
the support for coverage analysis in bug 32722 
(http://issues.apache.org/bugzilla/show_bug.cgi?id=32722) which should 
let you see what parts of your code actually gets tested.  Also, note 
that I have been having PatternLayoutTest.test14 fail.  You can run the 
test suite where it doesn't stop if that test fails by using

ant -Dhaltonfailure=no runAll



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: JoranConfigurator tips?

Posted by Ceki Gülcü <ce...@qos.ch>.
At 06:49 PM 12/21/2004, Mark Womack wrote:
>I finished up the implementation of the FileWatchdog last night but before
>checking it in for general consumption, I want to make sure there are some
>decent test cases in place.  I am going to use the new JoranConfigurator to
>configure a FileWatchdog from an xml config file that is being watched.
>
>I am going to start in the test cases, but is there anything in particular I
>should be aware of in regards to using the JoranConfigurator?  Is there a
>sample xml file that I should use as my starting base?

See for example,

http://marc.theaimsgroup.com/?t=110115779900002&r=1&w=2

For the rationale behind Joran see http://www.qos.ch/logging/joran.pdf

There is a short tutorial with several examples under 
$LOG4J_HOME/examples/src/joran

You can also find a whole bunch of actions under 
$LOG4J_HOME/src/java/org/apache/log4j/joran

HTH,

>Thanks,
>-Mark

-- 
Ceki Gülcü

   The complete log4j manual: http://qos.ch/log4j/



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org