BIRT: logging to eclipse console
Asked Answered
F

2

8

Need help in setting up BIRT logging.

Birt: 2.6.2 Eclipse: 3.6.2 (reporting)

I am able to log from within the eclipse birt designer to file as instructed here.

But not sure how to redirect the logs to eclipse standard console. Tried the following script but didn't work:

importPackage(Packages.java.util.logging);

var cHandler = new ConsoleHandler();
cHandler.setFormatter(new SimpleFormatter());
var rootLogger = Logger.getLogger("");
logger.addHandler(cHandler);

Logger.getAnonymousLogger().info(str);
Funambulist answered 4/7, 2011 at 12:29 Comment(0)
B
0

The workaround can be NTail plugin.

Log whatever you want to a file, then monitor this file with NTail. See this answer about logging.

Even if you want to monitor Eclipse stdout (redirected to a file) with Eclipse...

Brunelleschi answered 21/9, 2011 at 9:12 Comment(0)
M
0

Do you have a logging configuration file? You don't need one necessarily, but if you don't set your log level in a configuration file, maybe you have to set it at runtime:

logger.setLevel(Level.ALL);

If this doesn't work either you could also try to use log4j instead of java.utils.logging.

Mathamathe answered 22/9, 2011 at 23:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.