Jump to content

BIRT Developer Center Download


Submitter

File Information

  • Submitted: Apr 24 2015 09:03 AM
  • Last Updated: Apr 24 2015 09:03 AM
  • File Size: Unknown
  • Views: 10726
  • Downloads: 0
  • Approved by: kclark
  • Approved on: 24 April 2015 - 09:03 AM
  • Summary: Open Source BIRT logging with log4j
  • Content Type: Designs & Code
  • BIRT Version: 4.3

Go to Resource
BIRT Logging with log4j

- - - - -



Screenshots
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);
}







0 user(s) are online (in the past 1 minutes)

0 members, 0 guests, 0 anonymous users