Skip to main content



      Home
Home » Archived » BIRT » where is the console?
where is the console? [message #259378] Wed, 24 October 2007 19:27 Go to next message
Eclipse UserFriend
I am using the birt-report-designer-all-in-one-2_2_0.

I create a java class, jar'd it, placed the jar file in this directory
C:\birt-report-designer-all-in-one-2_2_0\eclipse\plugins\org .eclipse.birt.report.viewer_2.2.0.v20070620\birt\WEB-INF\lib

then I added this script to the 'initialize' handler on the report
importPackage(Packages.nell);
MyLogger.log("Hello world.");

I dont get any error messages when I preview the report, but I also dont
know where to find the output.
I thought it might be in the lastest log where some of my earlier javascript
errors where showing up....
( tail -f -n1
" C:\birt-workspace\.metadata\.plugins\org.eclipse.birt.report .viewer\logs\ReportEngine_2007_10_24_17_58_44.log "
)
but not there either.

any help?

thanks
Steve


for reference... this is my java class

package nell;
public class MyLogger
{
public static void log(String comment)
{ System.out.println(comment);
}

}
Re: where is the console? [message #259436 is a reply to message #259378] Thu, 25 October 2007 07:18 Go to previous messageGo to next message
Eclipse UserFriend
well... I am still wondering if it is possible to capture output messages to
some type of console w/in the report designer...
but for any other newbies out there -- I added the following script to the
report initialize handler.. now I can see output in c:/birt.log


importPackage(Packages.java.util.logging);
var fileHandler = new FileHandler("c:/birt.log", true);
var rootLogger = Logger.getLogger("");
rootLogger.addHandler(fileHandler);

function log ( str )
{ Logger.getAnonymousLogger().info(str);
}
reportContext.setPersistentGlobalVariable("log", log);

log('zzz');




"Steve Nell" <dev1@nellconsulting.com> wrote in message
news:ffokdj$nh8$1@build.eclipse.org...
>I am using the birt-report-designer-all-in-one-2_2_0.
>
> I create a java class, jar'd it, placed the jar file in this directory
> C:\birt-report-designer-all-in-one-2_2_0\eclipse\plugins\org .eclipse.birt.report.viewer_2.2.0.v20070620\birt\WEB-INF\lib
>
> then I added this script to the 'initialize' handler on the report
> importPackage(Packages.nell);
> MyLogger.log("Hello world.");
>
> I dont get any error messages when I preview the report, but I also dont
> know where to find the output.
> I thought it might be in the lastest log where some of my earlier
> javascript errors where showing up....
> ( tail -f -n1
> " C:\birt-workspace\.metadata\.plugins\org.eclipse.birt.report .viewer\logs\ReportEngine_2007_10_24_17_58_44.log "
> )
> but not there either.
>
> any help?
>
> thanks
> Steve
>
>
> for reference... this is my java class
>
> package nell;
> public class MyLogger
> {
> public static void log(String comment)
> { System.out.println(comment);
> }
>
> }
>
Re: where is the console? [message #259467 is a reply to message #259436] Thu, 25 October 2007 10:25 Go to previous message
Eclipse UserFriend
Steve,

I normally do exactly what you did. Not really pretty, but it works.

Scott

> nellconsulting.com
>
Previous Topic:Concatenating strings in a dataset
Next Topic:Using BIRT taglib with custom engine home location
Goto Forum:
  


Current Time: Sat Jun 07 07:19:14 EDT 2025

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

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

Back to the top