开发者

Basics in Logging

Do Log files ever get too large?

I log a lot of variables in a twitter script, that is running i开发者_StackOverflowndefinitely. Does this pose a risk for my server or are there maintenance issues I should consider?

What are the best practices for managing log files?

Thanks!


You could issue cron jobs or if you are running on a windows machine: use the task scheduler.

Cron


I would suggest looking at something like logrotate to keep the log files to a reasonable size and number.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜