Home
Analytics
Why does BIRT create so many log files?
screenname
Hey guys,
I started working with BIRT recently and noticed there were a lot of log files generated by the BIRT engine. And most of them are empty. I guess BIRT reuses the logging in org.eclipse.datatools. Each set includes
"ReportEngine_<date>.log"
"ReportEngine_<date>.log.lck"
"org.eclipse.datatools.connectivity.oda_<date>.log"
"org.eclipse.datatools.connectivity.oda_<date>.log.lck"
"org.eclipse.datatools.enablement.oda_<date>.log"
"org.eclipse.datatools.enablement.oda_<date>.log.lck"
But why can't BIRT use a fixed number of files over and over again? I am wondering if there is a way reconfigure or customize the logging without having to get too hairy.
For the record, BIRT is great and I like it a lot.
Thanks,
Find more posts tagged with
Comments
mwilliams
Hi screenname,
If you are using the Report Engine API, you can either do:
config.setLogConfig("c:/temp/test", Level.ERROR);
Or you can set it to null:
config.setLogConfig(null, Level.FINEST);
If you are using the viewer the web.xml file contains a setting to change the
log level.
Hope this helps.
screenname
Michael,
Thanks for reply.
I don't think there is a level "ERROR". But I set it to "SEVERE" but the same files showed up. I don't want to turn off the logging because that is the first hand information for any error.
So I want to keep the log but hope BIRT would reuse a small number of files (like Log4j) gracefully.
BTW, I am using 2.2.2, if that makes any difference.
gavrielkay
BIRT still creates log files and lck files on server startup even when logging is set to SEVERE. This is nuts. Is it possible to turn this off completely?
thle
Finally, I found the way to turn it off the unwanted BIRT logs. It requires modifying the log4j.xml config file. For my case, I run JBoss, and I want to turn off the org.clipse.datatools.connectivity log files, so I modify jboss-log4j.xml file by adding the following to the config file:
<category name="org.eclipse.datatools.connectivity">
<priority value="ERROR" />
</category>
This will prevent creating the 0kb file of the connectivity_odba junks. The priority value can be changed to FATAL, WARN, DEBUG, INFO, or TRACE depend on your desire.
dzish
Hi,
I switched off loging thanks to comment logging in /WEB-INF/viewer.properties
# "logger."+class=level
# if no level is specified or the text "DEFAULT",
# then the default level from the web.xml will be used
# logger.org.eclipse.datatools.connectivity.oda=DEFAULT
# logger.org.eclipse.datatools.enablement.oda=DEFAULT
pawasarmol
Hello All,
I am also running in to same issue with BIRT , with it creating so many 0KB files, I tried the option of setting the Level to SEVERE , but it does not help. It still creates those annoying file. Any suggestion... ? Thanks