設定記錄檔位置

Edge for Private Cloud 4.17.01 版

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

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