Alex,
Thanks for this. However I wasn't clear -- I meant to say "as a processor"
or "from a .xpl file." So for example, is there a processer:
<p:processor uri="oxf/processor/log4j">
<p:config ...>
<Log this message>
</p:processor>
I assume the answer is no, but we've been pleasantly surprised in the past
by features that were lurking beneath the surface... :)
-Scott
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Alessandro Vernet
> Sent: Monday, August 11, 2003 6:50 PM
> To: OXF Users
> Subject: Re: accessing log4j from XPL
>
>
> Scott McMullan wrote:
> > Is there a way to access log4j from a processor?
>
> Scott, you can directly use the Log4j API in your processor:
>
> import org.apache.log4j.Logger;
>
> public class MyProcessor extends SimpleProcessor {
> static private final Logger logger =
> Logger.getLogger(MyProcessor.class.getName());
>
> public void generateData(...) {
> ...
> logger.debug(...);
> ...
> }
> }
>
> Alex
>
> _______________________________________________
> oxf-users mailing list
> [EMAIL PROTECTED]
> http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users