Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 11:43 Go to next message
RUSSELL NILE is currently offline RUSSELL NILEFriend
Messages: 17
Registered: June 2014
Junior Member
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 11:57]

Report message to a moderator

Re: Using console inside included BIRT scripts (initialize) [message #1407177 is a reply to message #1404344] Tue, 12 August 2014 03:31 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

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");


Developer Evangelist, Silanis
Re: Using console inside included BIRT scripts (initialize) [message #1798800 is a reply to message #1404344] Sun, 25 November 2018 16:26 Go to previous message
Per Nyfelt is currently offline Per NyfeltFriend
Messages: 3
Registered: December 2015
Junior Member
In onPrepare or initialize:

function log ( msg ){"" + 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: Sat Oct 19 16:58:45 GMT 2019

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

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

Back to the top