Logs data to specified files.
The constructor takes the file location as its argument. If you want to autoload this library, you can set the file using the setFile() method. Both the method and the constructor throw a FileNotFoundException in case the file does not exist, or a NoPermissionsException in case the file does not have permissions for writing.
$logger = new Log
To output a line, you can use the line() or lines() methods. Both methods throw a NoPermissionsException in case the file is not writable.
$this->log->lines( array( 'second statement', 'third statement' ) );
By default, an example of line that was printed will look like this:
2012-01-31 22:30:30 --> first statement
So, the line is composed of a date and separator. The two are customizable :
$this->log->setDateFormat( 'Y M d H:i:s' )->setSeparator( ' ====== ' )->line( 'forth statement' );