log_errors_max_len = 1024 in php.ini, but php log keeps growing

后端 未结 3 1042
小鲜肉
小鲜肉 2020-12-20 14:05

As the title says, I\'ve set the max length for the php error log, but it seems to keep growing much much larger than 1024. I am using the correct php.ini, I\'ve restarted

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 14:44

    As is typical for PHP, it is not really obvious from the name of the configuration setting, or even the documentation, but this directive applies to the length of a single log message, not the length of the log file as a whole.

    Use logrotate or a similar tool for what you are trying to do.

提交回复
热议问题