cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: cvs commit: xml-cocoon2/src/java/org/apache/cocoon
Date Thu, 12 Sep 2002 13:06:30 GMT

Sylvain Wallez wrote:

> Actually, this is something I was considering by looking at the priority 
> filter in logkit.xconf that directs all errors regardless their category 
> to the error log file. I also considered redirecting only "core" errors 
> to that file.
> Referring to the definition of priorities (see 
>, we see that a 
> warning is "A problem or conflict has occurred but it may be 
> recoverable, then again it could be the start of the system failing".
> So we can consider that a low-level component that fails should issue 
> warnings instead of errors since it doesn't know if the error can be 
> recovered by a higher-level component. This also shows that the logging 
> priority is a relative concept that depends on the responsibility of a 
> component in the system.
> So ok for warn !
> So as a summary :
> - Logging _errors_ is reserved to high-level entities such as Cocoon and 
> CocoonServlet,
> - A component that fails _can_ log a _warning_ before throwing an 
> exception,
> - An exception that is catched and propagated _must not_ be logged, even 
> if wrapped in a CascadingException.
> Do we agree on this ?

Absolutely! - So, I can keep on removing things... :-)


To unsubscribe, e-mail:
For additional commands, email:

View raw message