跳到主要内容
版本:latest

get_rotate_log_config

获取面板日志自动切割任务的配置信息。

  • 路由POST /crontab
  • actionget_rotate_log_config

输出参数

参数名称类型描述
statusBooleantrue
msgObject配置详情:stype(周期类型)、log_size(日志大小)、num(保留份数)、compress(压缩)、status(开关)

示例

{"status": true, "msg": {"stype": "day", "log_size": 0, "num": 10, "compress": false, "status": 1, "hour": 2}}