my dog learned polymorphism*
The moose likes Java in General and the fly likes Logging Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logging Issue" Watch "Logging Issue" New topic
Author

Logging Issue

Shihad Salam
Greenhorn

Joined: Dec 15, 2010
Posts: 10
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

Joined: Oct 13, 2011
Posts: 119
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

Joined: Dec 15, 2010
Posts: 10
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.

Thanks !
 
jQuery in Action, 2nd edition
 
subject: Logging Issue
 
Similar Threads
Creating the crystal reports from Java
Crystal Report in JSF
Crystal Reports 10 with Java
XML and Reporting
Java Accessing Crystal Reports