Library of php classes
<?php
require_once("Logger.class.php");
$logger = new Logger("/logs/logfile.txt");
?>
This is a private property that is set automatically based on the file parameter passed in to the constructor.
Initializes logger object based on file provided. If a path is not included in the file parameter, the directory that this class resides in will be used. If a path is provided in the file parameter provided, and the path does not exist, an attempt will be made to create it.
Prepends date/time ("Y-m-d h:i:s") to value in msg, prints it and adds it to logfile.