公佈程序期間發生的任何錯誤都會寫入下列日誌和追蹤檔中:
附註:活動日誌為二進位格式。如果要檢視此日誌, 您必須使用「日誌分析程式」工具。進一步資訊請參閱 WebSphere Commerce 管理手冊。
- activity.log
- WebSphere Application Server 日誌。WebSphere Commerce 中的所有錯誤訊息會寫到
activity.log 中。如果公佈失敗,請先檢查這個日誌。
activity.log 位於下列目錄:WAS_installdir/logs
WAS_userdir/Base/WAS_instance_name/logs
WCStudio_installdir/workspace_name/.metadata/plugins/com.ibm.etools.server.core/tmp0/logs
其中 workspace_name 為 workspace_db2 或 workspace_oracle,此視您所用的資料庫而定。
- SystemOut.log 與 SystemErr.log
- SystemOut.log 位於下列目錄中。內含在公佈商店期間任何寫到標準輸出與標準錯誤中的資訊。SystemOut.log 與 SystemErr.log 位於下列目錄中:
WAS_installdir/logs/instance_name
WAS_userdir/Base/WAS_instance_name/logs/WC_ instance_name
重要事項:WebSphere Commerce Studio 中不提供 SystemOut.log。在預設的情況下,當您在 WebSphere 測試環境中停止與啟動應用程式伺服器時, WebSphere Commerce Studio 不會儲存日誌檔。 有關讓 WebSphere Commerce Studio 在 WebSphere 測試環境中停止與啟動應用程式伺服器時,讓 WebSphere Commerce Studio 儲存日誌檔的指示, 請參閱 WebSphere Studio Application Developer Infocenter。
- messages.txt
- 內含公佈程序期間,「載入器套件」方面所產生的訊息。
這些訊息中提到的行號或直欄號碼是參照 store-data-assets.xml 檔(在執行「ID 解析程式」後建立)以及參照 store-data-assets-resolved.xml 檔(在執行「載入器」後建立)。 這些錯誤訊息中提到的行號或直欄號碼是參照下列的輸入檔: store-data-assets-resolved.xml(當使用「載入器」時)與 store-data-assets.xml 檔(當使用「ID 解析程式」時)。 有關這些檔案的進一步資訊, 請參閱 WebSphere Commerce 商店程式開發手冊中的「公佈完整商店」一章。
內含公佈程序期間,「載入器套件」方面所產生的訊息。
這些訊息中提到的行號或直欄號碼是參照 store-data-assets-resolved.xml 檔,此檔案是在執行「載入器」後建立。這些錯誤訊息中提到的行或直欄號碼是參照這個輸入檔。 有關這些檔案的進一步資訊, 請參閱 WebSphere Commerce 商店程式開發手冊中的「公佈完整商店」一章。
messages.txt 位於下列目錄中:WC_installdir/instances/instance_name/logs
WC_userdir/instances/instance_name/logs
WCStudio_installdir/Commerce/logs
附註:若要配置 messages.txt 日誌檔(調整記載層次或其他選項), 請編輯下列檔案:
WC_installdir/instances/instance_name/xml/loader/WCALoggerConfig.xml
WC_userdir/instances/instance_name/xml/loader/WCALoggerConfig.xml
WCStudio_installdir/Commerce/instances/instance_name/xml/loader/WCALoggerConfig.xml
- trace.txt
- 內含在公佈程序期間,載入器套件與 ID 解析程式的相關追蹤資訊。在預設的情況下,會停用 trace.txt。
trace.txt 位於下列目錄中:WC_installdir/instances/instance_name/logs
WC_userdir/instances/instance_name/logs
WCStudio_installdir/Commerce/instances/instance_name/logs
在預設的情況下,trace.txt 為一個循環日誌。
附註:若要配置 trace.txt 日誌檔 (調整記載層次或其他選項), 請編輯下列檔案:
WC_installdir/instances/instance_name/xml/loader/WCALoggerConfig.xml
WC_userdir/instances/instance_name/xml/loader/WCALoggerConfig.xml
WCStudio_installdir/Commerce/instances/instance_name/xml/loader/WCALoggerConfig.xml
RESWCSID.txt
- 內含公佈程序中「ID 解析程式」方面所產生的訊息。這些訊息中提到的行或直欄號碼是參照輸入檔, 像是:store-data-assets.xml 檔。RESWCSID.txt 位於下列目錄中:
WC_userdir/instances/instance_name/logs 附註:若要配置 RESWCSID.txt 日誌檔(亦即,調整記載層次或其他選項), 請編輯下列檔案:
WC_userdir/instances/instance_name/xml/loader/WCALoggerConfig.xml
- trace.log
- WebSphere Application Server 追蹤日誌的一部份。內含公佈程序的相關追蹤資訊(若有啟用 WC_DEVTOOLS 追蹤元件的話)。
有關啟用日誌記載的進一步資訊,請參閱 WebSphere Commerce 管理手冊中的「配置」一章。
trace.log 位於下列目錄中:WAS_installdir/logs/WC_instance_name
WAS_userdir/Base/instance_name/logs/WC_ instance_name
WCStudio_installdir/workspace_name/.metadata/plugins/com.ibm.etools.server.core/tmp0/logs
其中 workspace_name 為 workspace_db2 或 workspace_oracle,此視您所用的資料庫而定。