cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: How to log from a Java class ?
Date Mon, 27 Aug 2001 13:56:25 GMT
Quoting Cyril Cambien <ccambien@ivision.fr>:

> I understand how to log from a xsp file using the log.xsl logicsheet but
> what is the best way to log information from the Java classes called
> from my xsp files ?

Make them implement Loggable and pass the logger to them 

    <xsp:logic>yourClassInstance.setLogger(getLogger());</xsp:logic>

Giacomo

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message