Location: PHPKode > projects > SkullPuppy > Project/library/SP/Logs.php
<?php

class SP_Logs {
	static public function error($log) {
		$file = SP_Base_Dir.'logs/default.err';
		$fp = fopen($file, 'a+');
		fwrite($fp, date('Y-m-d H:i:s'));
		fwrite($fp, "#  $log\n");
		fclose($fp);
	}

	static public function warn($log) {
		$file = SP_Base_Dir.'logs/default.warn';
		$fp = fopen($file, 'a+');
		fwrite($fp, date('Y-m-d H:i:s'));
		fwrite($fp, "#  $log\n");
		fclose($fp);
	}

	static public function msg($log) {
		$file = SP_Base_Dir.'logs/default.log';
		$fp = fopen($file, 'a+');
		fwrite($fp, date('Y-m-d H:i:s'));
		fwrite($fp, "#  $log\n");
		fclose($fp);
	}
}

?>
Return current item: SkullPuppy