You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by st...@mpsa.com on 2003/08/21 15:48:42 UTC
Get FOP logs with Log4j...
Hi all
I'm writing an application in witch I'm embedding FOP.
I want to get FOP logs with Log4j.
The documentation says that I can use :
driver.setLogger(new
org.apache.avalon.framework.logger.LogKitLogger(log));
It exists similar implementations with Log4j so I tried :
driver.setLogger(new
org.apache.avalon.framework.logger.Log4JLogger(log));
with :
private static final Logger log =
Logger.getLogger(XSLTUtil.class.getName());
javac is complaining that I need org.apache.log.Logger.
I read the fop-dev archives so I check my FOP version. It's the 0-20.4.
What's wrong ???
If anyone can help me... Thanks.
Stephane
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Get FOP logs with Log4j...
Posted by Carsten Hau <ca...@materna.de>.
Do you have the jar-file for Log4j in your classpath (e.g.
"log4j-1.2.8.jar") ?
stephane.peyronny@mpsa.com wrote:
>Hi all
>
>I'm writing an application in witch I'm embedding FOP.
>I want to get FOP logs with Log4j.
>
>The documentation says that I can use :
> driver.setLogger(new
>org.apache.avalon.framework.logger.LogKitLogger(log));
>It exists similar implementations with Log4j so I tried :
> driver.setLogger(new
>org.apache.avalon.framework.logger.Log4JLogger(log));
>with :
> private static final Logger log =
>Logger.getLogger(XSLTUtil.class.getName());
>
>javac is complaining that I need org.apache.log.Logger.
>
>I read the fop-dev archives so I check my FOP version. It's the 0-20.4.
>
>What's wrong ???
>If anyone can help me... Thanks.
>
>Stephane
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
>For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org