<p>I am using CR XI in my application which uses JRC. In the log4j I have not added any Crystal report specific comments for logging. Even then my log file returns Crystal Report -DEBUG, INFO and WARN messages.</p><p>Is there a way to stop these.</p>
Request clarification before answering.
When using the JRC you should have a log4j.properties file in your classes directory which specifies the log4J settings for your application. The JRC comes with a log4j.properties file that you can use or you can use your own. Which ever you use you should have the following contents in your log4j.properties file.
# Default log location
crystal.logs.home=${user.home}
log4j.appender.jpeAppender=org.apache.log4j.RollingFileAppender
log4j.appender.jpeAppender.file=${crystal.logs.home}/jpe.log
log4j.appender.jpeAppender.ImmediateFlush=false
# number of log files to keep before deleting the oldest one
log4j.appender.jpeAppender.MaxBackupIndex=30
log4j.appender.jpeAppender.MaxFileSize=500KB
# Log message layout: date-time priority category - message lineTerminator
log4j.appender.jpeAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.jpeAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} [%t] %-5p %c - %m%n
# log4j.rootLogger=ERROR
# Covers all of the reporting engine
log4j.logger.com.crystaldecisions.reports=ERROR, jpeAppender
log4j.logger.com.crystaldecisions.threedg=ERROR, jpeAppender
log4j.logger.com.crystaldecisions.common=ERROR, jpeAppender
Rob Horne
<a href="https://answers.sap.com/blog/10">Rob's blog - http://diamond.businessobjects.com/blog/10</a></p>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.