Hi folks,
guess I have another kind of low level question in terms of difficulties to
answer...
Some time ago I wrote my own transformer (special thanks to all who helped
me!). This transformer, in my case, extends the AbstractDOMTransformer class.
Further, it imports org.apache.avalon.framework.logger.Logger. This enables to
call the following within the transformer method: Logger logger =
this.getLogger(); Moreover, its easy to output logger messages via e.g.
logger.info("text"); at logger level: info.
I am facing the following problem now: I wrote other classes who's methods
become called within my transformer. But how can I output logger messages
within these classes?
I already tried to import org.apache.avalon.framework.logger.Logger; and
org.apache.avalon.framework.logger.AbstractLogEnabled; Then I extended
AbstractLogEnabled and tried to get a transformer within my method by the
following: Logger logger = this.getLogger(); (same way as I did in my custome
transformer). All this works fine in terms of compilation and runtime, but when
adding to output something via logger.info("msg") / logger.error("msg") / ... I
run into a java.lang.RuntimeException: and java.lang.NullPointerException
during runtime. At the end, I tried to implement the LogEnabled interface as
done here:
http://mail-archives.apache.org/mod_mbox/cocoon-users/200607.mbox/[EMAIL
PROTECTED] - but it doesn't work too (same exceptions).
Can someone tell me what I am doing wrong, or what I am missing?
thanks a lot for your help!
best regards
Thomas
btw: Lenya uses cocoon-2.1.7 - if someone would like to take a look at the
stacktrace, just let me know plz
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]