> -----Original Message----- > From: Ceki G�lc� [mailto:[EMAIL PROTECTED] > Sent: lundi 10 janvier 2005 12:35 > To: Cactus Users List > Cc: [email protected] > Subject: RE: Log4j integration testing with Application Servers > > At 11:38 AM 1/9/2005, Vincent Massol wrote: > > >There is another solution: to use a custom logging monitor as explained > here > >(http://paulhammant.com/blog//000241.html) - I've done that for Cargo and > it > >looks good. I'm sure it is less powerful than using CL or UGLI but it has > >the advantage of reducing the mandatory jar dependencies by one. Also we > >have very simple logging needs and no performance required, so it would > be > >enough. > > The monitor interface approach works in case the environment is > tightly controlled. For example, Ant uses a similar approach because > it controls its environment, in fact, it *is* the environment. In its > environment Ant sets the rules as it sees fit. > > However, as in the case of Cactus, you need to be embedded into > various environments, then the monitor approach does not work that > well.
That's funny because I've always thought the opposite: for Cargo for example, we are offering a Java API that is meant to be embedded and the reason I have developed the monitor is specifically to avoid dragging another dependency (which does not provide visible business value to the user). What it is doing is pushing the logging definition to the user (if he wants to be concerned about logging). So in my opinion the monitor is really best when you wish your code to be embedded. Cactus is in between: it's not really embeddable although it could be considered like embeddable in the sense that a Cactus tests can be run in any existing JUnit Test Runner. However, when you use Cactus with our Ant tasks or the Maven plugin, it becomes an application. I believe this represents the main usage. Thanks -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
