How to get logger from within a MVEL script in Nuxeo Studio ?

Hello, is it possible to log debug info when running a script in Nuxeo Studio ?

Thank you,

Antoine

0 votes

1 answers

2770 views

ANSWER



Hi Antoine,

This will work:

org.apache.commons.logging.LogFactory.getLog("RunScript").debug("Something happened.");

Just make sure you added this in log4j configuration:

<category name="RunScript" additivity="true">
  <priority value="DEBUG" />
</category>

You can also choose any other String than RunScript.

2 votes



Thank you!
11/14/2013