hi all,

I have a buggy groovy script (my fault). I would like to debug it with
the help of the logger.

What is the name of the logger object in a script?

The simple trick to get it by myself:

<string>gr:
         <![CDATA[gr:

        import org.slf4j.Logger
        import org.slf4j.LoggerFactory

        logger = LoggerFactory.getLogger("myLogger")
        logger.info("hi all")

                ]]>

does not work with:

set 29 11:36:17 - ERROR - javax.script.ScriptException:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
Script63.groovy: 3: Unknown type: IMPORT at line: 3 column: 29. File:
Script63.groovy @ line 3, column 29.
                               import org.slf4j.Logger

regards,

Francesco
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to