cancel
Showing results for 
Search instead for 
Did you mean: 

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

Antoine_Cordier
Star Contributor
Star Contributor

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

Thank you,

Antoine

1 ACCEPTED ANSWER

Laurent_Doguin
Star Collaborator
Star Collaborator

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.

View answer in original post

2 REPLIES 2

Laurent_Doguin
Star Collaborator
Star Collaborator

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.

Thank you!