這篇文章已封存,而且 Apple 也不會再更新。

OS X Server:變更 opendirectoryd 記錄層級

本文說明如何變更 opendirectoryd 記錄層級。

如果你正在對 Open Directory(也稱為「目錄服務」)進行故障診斷,或想提供關於 Open Directory(opendirectoryd)要求的更多資訊,你可能會想變更 opendirectoryd 記錄層級。

使用下列「終端機」指令啟用 opendirectoryd 除錯記錄:

odutil set log debug

你可以使用下列指令回復成標準記錄:

odutil set log default

Notes

  • 記錄儲存在 /var/log/opendirectoryd.log 中。

  • 記錄層級會持續到重新啟動為止。

  • 其他的記錄層級還有:「alert」、「critical」、「error」、「warning」、「notice」和「info」。

  • 如需更多資訊,請參閱 odutil 工具程式(例如「man odutil」)的手冊頁面。

  • 一般來說,只有在針對 Open Directory 服務相關問題進行故障診斷時,才應使用除錯記錄,因為除錯記錄可能產生大量的記錄訊息。如果你需要 Open Directory 事件的詳細資訊,但不想使用「debug」,請考慮改用「info」。

發佈日期: