Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to debug / sysout input&output from datasource
Gry
<p>Hi, as per title, I need to print out the input / output of the datasource call in BIRT report. How to achieve this ?</p>
<p>My BIRT version 4.4.1.</p>
<p> </p>
<p> </p>
<p>Thanks</p>
Find more posts tagged with
Comments
Matthew L.
<p>I always run the "eclipse<b>c</b>.exe" file when I launch BIRT so that I have a secondary console window to view while in BIRT.</p>
<p>Then I can output my custom debug messages to the console window by using the following script:</p>
<pre class="_prettyXprint _lang-js">
//Place in Data Set's beforeOpen script method
//This will display the Data Set's query in the eclipsec console window
var qry = this.queryText; //Get query
java.lang.System.out.println("Console Out: " + qry); //Print to console window
java.util.logging.Logger.getLogger("birt.report.logger").warning ("BIRT Log Out: " + qry); //Output to BIRT log <workspace>/.metadata/.log
</pre>
<p>*I've also added another debugging line I use which outputs to the BIRT log file. This can be useful if you deploy to an iHub server as your debug messages will show up in the jsrvr log files.</p>