Logging policy for plugins

Hi, I was looking for the logging policy for plugins, but couldn't find it in the doc. Is there any way to setup and use logging in a Java plugin? Regards, -- Florent Georges http://fgeorges.org/

Hi Florent, In Oxygen we use the Apache Log4j logging. So if in the Oxygen installation directory you create a "log4j.properties" file like the one I'm attaching you will be able to set up a logger in each class like: /** * Logger for logging. */ private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(CurrentClass.class.getName()); If you start Oxygen using the startup scripts like "oxygen.bat" you will see your messages in the console (either using the logger or writing to System.out or System.err directly). Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/23/2011 10:34 PM, Florent Georges wrote:
Hi,
I was looking for the logging policy for plugins, but couldn't find it in the doc. Is there any way to setup and use logging in a Java plugin?
Regards,

Radu Coravu wrote: Radu,
In Oxygen we use the Apache Log4j logging. So if in the Oxygen installation directory you create a "log4j.properties" file like the one I'm attaching you will be able to set up a logger in each class like:
Ok, that confirms what I thought. Thank you! -- Florent Georges http://fgeorges.org/
participants (2)
-
Florent Georges
-
Radu Coravu