Oh I have made confusion..
Sorry
I think that this code is ok for avalon.framework.Logger.
but not for log4j.This is correct??
Anybody know how to use fop with log4j??
Gian
----- Original Message -----
From: "Balaji Loganathan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07, 2003 3:45 PM
Subject: Re: XSL_FO generator
> Did you tried
> driver.setLogger(log); ?
>
>
> --- Gian Piero Bottini <[EMAIL PROTECTED]>
> wrote: > Hi all
> > Do somebody know how to integrate log4j and fop??
> > In my project I have 2 log files created with log4j
> > and I would put the fop
> > output in them.
> > The code should be like this..
> >
> > Hierarchy hierarchy =
> > Hierarchy.getDefaultHierarchy();
> > PatternFormatter formatter = new
> > PatternFormatter(
> > "[%{priority}]: %{message}\n%{throwable}" );
> >
> > LogTarget target = null;
> > target = new StreamTarget(System.out,
> > formatter);
> >
> > hierarchy.setDefaultLogTarget(target);
> > log = hierarchy.getLoggerFor("fop");
> > log.setPriority(Priority.INFO);
> >
> > driver.setLogger(?? )
> >
> > ....but what do I have to put instead of '??' ?
> >
> > Thanks a lot and sorry for my poor english and my
> > ignorance
> >
> > Gian Piero
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
>
> http://greetings.yahoo.com.au - Yahoo! Greetings
> - Send some online love this Valentine's Day.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]