logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: how to achieve that always when warn, error or fatal is logged also exception is raised
Date Wed, 13 Dec 2006 15:36:28 GMT
log4j isn't really designed for that so I would suggest that you only
attempt that if there is no other option.

On 12/13/06, jelka.kosir@atol.si <jelka.kosir@atol.si> wrote:
> Hi !
>
> I use Apache Fop for xml to pdf transformations (I use it on Domino Server
> 6.5 with java 1.3).
>
> I just installed Log4J (logging-log4j-1.2.14.zip), and works fine with
> Fop. Now my problem is that Fop only logs some errors when transforming,
> but I would like those errors to raise an exception so I could catch them
> in the Java code I've written and react on them.
>
> I tried to implement my own ErrorListener but it somehow does not work
> (mind that I'm not a very experienced Java programmer).
>
> Now I'm looking at the possibility to configure Log4J so it would do that
> for me -> whenever method error would be called upon logger it would also
> raise an exception and propagate it to my
> Java code. Now is this possible at all ?
>
> Thank you
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
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