云数据库 GaussDB-记录日志的位置:log_truncate_on_rotation

时间:2025-02-12 15:08:01

log_truncate_on_rotation

参数说明:logging_collector设置为on时,log_truncate_on_rotation设置日志消息的写入方式。

参数类型:布尔型

参数单位:

取值范围:

  • on:表示 GaussDB 以覆盖写入的方式写服务器日志消息。
  • off:表示GaussDB将日志消息附加到同名的现有日志文件上。

默认值:off

设置方式:该参数属于SIGHUP类型参数,请参考表1中对应设置方法进行设置。

设置建议:推荐使用默认值。

设置不当的风险与影响:请在充分理解参数含义,并经过测试验证后进行修改,避免出现意料之外的结果。

support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-10-0285.html