A PHP Programmer's Best Friend: Instant Logging Utility (with Code)
As programmers, one of the most common things we do when debugging is logging—which basically boils down to continuously appending debug information to a text file.
Based on my day-to-day experience, I’ve noticed that we often need to measure the execution time of certain code blocks while logging. So today, I wrote a logging class that supports execution-time monitoring, and I’d like to share it with everyone. The download link is at the end of the post. Alright, let’s start with how to use it:
Usage
1 | require_once('monitorlogger.class.php'); // Load the class |