cancel
Showing results for 
Search instead for 
Did you mean: 

Remove logging for crystal reports only

09-22-2006 5:02 AM
1485 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

<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>

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

robert_horne
Advisor
Advisor
0 Likes

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&#39;s blog - http://diamond.businessobjects.com/blog/10</a></p>

Answers (0)