logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <lis...@qos.ch>
Subject Re: Propagate errors in a scripting application using log4j
Date Mon, 09 Jul 2007 18:49:50 GMT
You might want to consider logback which handles this task very nicely.

minimoe wrote:
> Hi!
> 
> I've got a question regarding log4j and propagating errors in a program
> flow. I'm currently developing test case scripts using Rational Functional
> Tester which has a poor logging system and I've looked into using log4j
> instead.
> 
> I can't find a way to make log4j propagate errors to a "higher instance".
> What I would like is for errors found in the "middle" of the program flow to
> propagate to the last stage of the process.
> 
> An example flow where an error in a subscript propagates to end.
> 
> Script 1
>  Subscript 1:1 OK!
>  Subscript 1:2 ERROR!
>  Subscript 1:3 OK!
> Script 1 Finished with ERROR in Subscript 1:2.
> 
> Would it be good practice to use some kind of hierarchy in which the errors
> are sent to a special logger which in turn connects to the top-level-logger
> and outputs at the end of the flow?
> 
> I'll appreciate any help or tips I can get in this matter!

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

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


Mime
View raw message