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.
精彩评论