Files and Folders: Logger class to write all at once
Sudhir Chauhan (contact me)
This class can be used to log activity to files buffering the messages.
It can log one or more activity messages to a log file.
The messages are first stored in class private array variable that works as a buffer.
When the object is destroyed, eventually at the end of the script, the messages are flushed to the log file all at once.
Click here for detailed information about this class on phpclasses.org