Location: PHPKode > scripts > Ajaxmint Gallery > ajaxmint-gallery/system/libs/logger.php
<?php
final class Logger {
	private $filename;
	
	public function __construct($filename) {
		$this->filename = $filename;
	}
	
	public function write($message) {
		$file = DIR_SYSTEM."/logs/".$this->filename;
		
		$handle = fopen($file, 'a+'); 
		
		fwrite($handle, date('Y-m-d G:i:s') . ' - ' . $message . "\n");
			
		fclose($handle); 
	} 	
}
Return current item: Ajaxmint Gallery