php.log:清除日志文件的正确方法是什么? [英] php.log: what is the proper way to clear log file?

查看:64
本文介绍了php.log:清除日志文件的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对php日志文件进行故障排除,该日志文件的扩展速度过快并且已占用大量磁盘空间.

I'm troubleshooting a php log file that has expanded way too rapidly and used up a lot of disk space.

清除日志文件的最佳方法是什么?

What is the best way to clear a log file?

简单地删除日志文件有问题吗?并在php尝试写入日志文件时重新创建该日志文件吗?

is it a problem to simply delete the log file? And will that log file be recreated as php tries to write to it?

推荐答案

仅删除php.log文件是完全安全的.下次需要时会自动创建.

It is entirely safe to just delete the php.log file. It will be auto-created the next time it is needed.

这篇关于php.log:清除日志文件的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆