Skip to main content



      Home
Home » Archived » BIRT » Using console inside included BIRT scripts (initialize)(I can not figure out how to use the console output in BIRT method)
Using console inside included BIRT scripts (initialize) [message #1404344] Thu, 31 July 2014 07:43 Go to next message
Eclipse UserFriend
I am trying to do some simple logging inside the BIRT initialize script but can't seem to figure it out. I'm sure I'm missing something basic....can someone point me?

Also; is it possible to dump the stacktrace to the log?

[Updated on: Thu, 31 July 2014 07:57] by Moderator

Re: Using console inside included BIRT scripts (initialize) [message #1407177 is a reply to message #1404344] Mon, 11 August 2014 23:31 Go to previous messageGo to next message
Eclipse UserFriend
Start eclipsec.exe instead of eclipse.exe. Then, you can then do this to print to the console that is opened with Eclipse:

java.lang.System.out.println("print this to the console");
Re: Using console inside included BIRT scripts (initialize) [message #1798800 is a reply to message #1404344] Sun, 25 November 2018 11:26 Go to previous message
Eclipse UserFriend
In onPrepare or initialize:

function log ( msg ){
Packages.java.lang.System.out.println("" + msg);
}
reportContext.setPersistentGlobalVariable("log", log);


The you can do simple logging anywhere in the report e.g.
log("something on the console whatever System.out means for you ");
Previous Topic:IRR function
Next Topic:Runtime exception occures when write any code into onPageStart or onPageEnd evetns
Goto Forum:
  


Current Time: Wed Mar 19 12:19:21 EDT 2025

Powered by FUDForum. Page generated in 0.02619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top