設定記錄檔位置

Edge for Private Cloud 4.16.09 版

根據預設,Edge 元件的記錄檔會寫入 /<inst_root>/apigee/var/log/componentName 目錄。請按照下列程序,變更所有 Edge 元件 (Edge UI 除外) 的預設位置:

  1. 建立下列檔案:
    /<inst_root>/apigee/etc/componentName.d/APIGEE_APP_LOGDIR.sh
  2. 在檔案中加入下列屬性:
    APIGEE_APP_LOGDIR=/foo/bar
    其中 /foo/bar 指定記錄檔的目錄。
  3. 重新啟動元件:
    > /<install_dir>/apigee/apigee-service/bin/apigee-service compName restart