#1 2018-01-18 18:45:39

jeffrozica
Member
Registered: 2017-08-17

Running groovy scripts - where does the log output go?

I am currently working to get LDAP working in my ReportServer DEV environment. That consists of running 2 groovy scripts ldapimport.groovy and hookldappam.groovy.  In those scripts there is logger.log lines to output verbiage to the log and System.println.out lines.  Where does that output go?  I looked in the logs folder under ..../apache-tomcat and cannot find anything in the logs there?

Is there a log setting somewhere that I need to change or are these logs that get updated from groovy script located somewhere else?

It would be helpful to know for debugging purposes.  Thanks.

Offline

#2 2018-01-23 14:37:04

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Running groovy scripts - where does the log output go?

3. To log from groovy scripts you can use the following:

import java.util.logging.Level
import java.util.logging.Logger

Logger logger = Logger.getLogger(getClass().getName());

logger.log(Level.SEVERE, "LOG TEST");

You should then see "my log message" in your reportserver logs.

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB