[oXygen-user] Logging policy for plugins

Radu Coravu
Mon Jan 24 02:20:55 CST 2011


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,
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log4j.properties
Url: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20110124/219f07aa/attachment.pl 


More information about the oXygen-user mailing list