

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 更新事件日誌組態
<a name="logging-update-config"></a>

您可以隨時使用 [UpdateEventLogConfiguration](https://docs.aws.amazon.com/iot-mi/latest/APIReference/API_UpdateEventLogConfiguration.html) 變更日誌層級：

```
aws iot-managed-integrations update-event-log-configuration \
    --id "{{your-configuration-id}}" \
    --event-log-level "DEBUG"
```

若要移除事件日誌組態，請使用 [DeleteEventLogConfiguration](https://docs.aws.amazon.com/iot-mi/latest/APIReference/API_DeleteEventLogConfiguration.html)。

**重要**  
啟用`DEBUG`記錄會產生更多日誌項目，並增加 CloudWatch Logs 成本。建議您從 開始`ERROR`，並只在主動疑難排解問題時增加關卡。