Intense logging script
Hi
Just a quick question regarding cron jobs in vB.
If i make a cron script which should run every 2 minutes, with 98% of those script runs being without the urge to actually place a cron log entry, where in 2% of the cases where the cron job runs, a cron log entry is needed due to special information, can I handle things in vb like this?
Or do i only have an option between "log everything" and "log nothing" ? Because a log entry every 2 minutes is just a huge amount of useless data.
For example, my cron script tests a socket connection every 2 minutes. If it's okay, nothing happens. If there's a timeout, I want to log that timeout in the cron log.
Any way to accomplish this?
Thanks, dp
|