Home Analytics DevShare
The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Open Source BIRT logging with log4j

kclarkkclark BIRT GuruEM
edited April 24, 2015 in DevShare
There are a few different was to approach error logging in an open source BIRT report. This is an example of how you can use log4j and a custom class to generate log4j output using a try/catch block in JavaScript.
importPackage(Packages.com.opentext.birt.logger);
logger = new BIRTLogger("initialize", "BIRT Logging Example.rptdesign");

try {
    addalert("something");
}catch(ex){
    logger.logError(ex);
}

Kristopher Clark

Actuate Corporation – The BIRT Company™

http://www.actuate.com | http://birtondemand.com

 

My Blog

Twitter

LinkedIn
Facebook
 

Sign In or Register to comment.