开发者

How do I integrate BIRT logging into application logging?

I'm developing a web application using Spring Framework, Hibernate, and Wicket. I've integrated the BIRT runtime engine as the reporting component, but I have a problem with logging. Every other component in the application eventually delivers its log messages to log4j. I have a single log4j configuration file which allows me to adjust the detail of each component.

BIRT, however, wants me to call setLogConfig() with a directory name argument. The first problem is that this gives me yet another filesystem path to开发者_开发百科 place in the application configuration, and the second problem is that I can't follow BIRT logs using the same tools that follow the rest of the application.

Does anybody have a solution to integrate BIRT logging into log4j, or some other application wide logging system?


The answer is quiet simple: yes.

BIRT uses the java util logging, but you can write a simple log handler redirecting to log4j. I could repeat it, but the solution is still offered in the BIRT-FAQ in Eclipse-Wiki

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜