Symptom
当ノートでは、Crystal Reports for Enterprise および Crystal Reports Viewer でトレースを有効化する方法について説明します。
Environment
- Crystal Reports for Enterprise 4.x
- Crystal Reports Viewer 2011
Resolution
- 以下の行を含むファイルを作成します。
log4j.rootLogger=INFO, CRtrace
log4j.logger.com.crystaldecisions=DEBUG
log4j.logger.com.businessobjects=DEBUG
log4j.appender.CRtrace=org.apache.log4j.RollingFileAppender
log4j.appender.CRtrace.MaxFileSize=100MB
log4j.appender.CRtrace.MaxBackupIndex=1000
log4j.appender.CRtrace.layout=org.apache.log4j.PatternLayout
log4j.appender.CRtrace.layout.ConversionPattern=%r\t%t\t%p\t%c - %m%n
log4j.appender.CRtrace.File=c:\\logs\\CRtrace.log
# 上述の最後の行を変更してログファイルを作成する場所を指定します。
# アプリケーションを実行する前に、このディレクトリが存在することを確認してください。
# 以下の行を変更しない場合は、ディレクトリ C:\logs が存在することを確認してください。
2. このファイルを C:\logs\log4j.properties として保存します。
3. ディレクトリ 'Document and Settings' でファイル config.ini を検索します。
注記: ディレクトリ 'Document and Settings' は、オペレーティングシステムによっては名前が 'Users' である場合があります。
- Crystal Reports for Enterprise の場合、ファイル config.ini は、C:\Users\Administrator\AppData\Roaming\Business Objects\Crystal Reports for Enterprise XI 4.0\configuration14.x.x.xxx にあります。
- Crystal Reports Viewer の場合、ファイル config.ini は、C:\Users\Administrator\AppData\Roaming\Business Objects\Crystal Reports Viewer 2011\configuration14.x.x.xxx にあります。
- 使用することができる設定フォルダが 2 つ以上ある場合は、最新のフォルダを使用してください。
- ファイル config.ini が上述の場所にない場合は、ファイルを作成することができます。
4. <ファイル名> を適宜置き換えて、以下の行をファイル config.ini に追加します。
log4j.configuration=file:/<ファイル名>
たとえば、ファイル名を C:\logs\log4j.properties として保存した場合、追加される行は以下のようになります。log4j.configuration=file:/c:/logs/log4j.properties
5. Crystal Reports for Enterprise を起動してワークフローを実行します。
ログファイルは、ファイル 'log4j.properties' のプロパティ log4j.appender.CRTrace.File で指定された場所に作成されます。この例では、トレースは C:\logs\CRtrace.log に含まれます。
Keywords
CR4E, 4.0, CRViewer, CRViewer 2010, Crystal Reports Viewer 2010, Log on to SAP BusinessObjects Enterprise, log into SAP BusinessObjects Enterprise, Cannot connect to SAP BO Enterprise at this time, SAP BusinessObjects Enterprise にログオンする, SAP BusinessObjects Enterprise にログインする, 現時点で SAP BO Enterprise に接続することができない
, KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , BI-RA-CRV , SAP Crystal Reports Viewer , How To
SAP Knowledge Base Article - Public