Logging Issue

Shihad Salam

Greenhorn

Posts: 10

posted 5 years ago

Hi,
I am using Crystal Report XI for generating report in my java application. While generating report enormous amount of logs are generated which causes the application down. I found some crystal report jar files responsible for generating these logs which uses org.apache.log4j.Logger. The logs are genearting in the standared out log.
Could you please provide some solution for restricting these logs using java or some other way as i was stucked by this issue.

Thanks !

Haina Minawa

Ranch Hand

Posts: 119

posted 5 years ago

Shihad Salam wrote:Hi,
I am using Crystal Report XI for generating report in my java application. While generating report enormous amount of logs are generated which causes the application down. I found some crystal report jar files responsible for generating these logs which uses org.apache.log4j.Logger. The logs are genearting in the standared out log.
Could you please provide some solution for restricting these logs using java or some other way as i was stucked by this issue.

Thanks !

You can modify the logging level, i.e the ERROR level should log only errors, while the DEBUG level prints out everything.

Shihad Salam

Greenhorn

Posts: 10

posted 5 years ago

Thanks for the reply..

Currently the logging level is set as INFO in those class files. I decompiled those crystal report class files and saw ths. I cannot modify anything in jar files, so i need to do something in my application to restict those info logs. Please Help.