On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Simple Logging Framework
How to use this simple logging framework:
<br />
<br />
You can now call the log() method from within BIRT Expressions and anyonPrepare or onCreate script events. If you want to perform any logging during the render phase of report generation, you will need toadd the code from above in number 3 to the beforeRender script eventand code from number 4 to the afterRender event.
-
<br />
- Copy the logging.js file to the resource folder. In the designer, the resource folder is the root of the project you are working with by default. In the iServer, this is typically the /Resources folder. Don't forget to set permissions in the iserver<br />
- Add the logging.js as a Javascript resource file for the report. Select the report design, and in the Property Editor view, select the Resources menu item in the Properties tab. Scroll down to the Javascript Files section and add the loggin.js file. If logging.js was added properly in step one, it will show up in the dialog upon clicking Add File...<br />
- Add the following code to the report's onPrepare script event: enableLogging = true; logFile = "C:\path\to\file\myLog.log"; //to overwrite the log for each report run, pass false instead of true openLog(logFile, true);<br />
- Add the following code to the afterFactory script event: closeLog();<br />
<br />
<br />
You can now call the log() method from within BIRT Expressions and anyonPrepare or onCreate script events. If you want to perform any logging during the render phase of report generation, you will need toadd the code from above in number 3 to the beforeRender script eventand code from number 4 to the afterRender event.
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax