예제 #1
0
	static function initialize($config) {
		self::$config = array_merge(self::$config, (array)$config);
		self::$handle = fopen(self::$config['logfile'], self::$config['logmode']);
		if(self::$config['debug']) {
			//"God Mode" 
			//error_reporting(E_ALL | E_DEPRECATED | E_STRICT);
			error_reporting(E_ALL | E_DEPRECATED);
			ini_set('display_errors', 1);	
		} else {
			error_reporting(0);
			ini_set('display_errors', 0);
		}
	}