Jean Pierre LeJacq wrote:
I hae a Java method called from JavaScript Flow that I would like to
instrument with the normal cocoon logging facilities.  What is the
best practice for passing the logger from the flow JavaScript to the
Java?

TIA,

You should make you class implement LogEnabled (or, more conveniently, extend AbstractLogEnabled), and then instantiate it using cocoon.createObject(Packages.my.NiceClass).


The various Avalon lifecycle interfaces implemented by the class will be honoured and the enableLogging() method will be called.

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to