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

Registered: 2017-08-17
Posts: 21

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.


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

Registered: 2016-11-01
Posts: 522

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

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

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

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

logger.error("my log message");

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



Board footer

Powered by FluxBB