设置

更新日志等级

切换 slog 全局日志等级并持久化。新等级即时生效,重启后从 DB 恢复。

put/settings/log-level

Request

  • Base URL: https://localhost:58091/api/v1
  • URL: https://localhost:58091/api/v1/settings/log-level
  • Auth: API key in header Authorization

Request body

levelstring

Response

返回更新后的 level

object required

Changes

No recorded changes to this operation across all 166 revisions of this API.