开发者

Basics in Logging

开发者 https://www.devze.com 2023-03-30 06:32 出处:网络
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

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

精彩评论

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

关注公众号