/** * Initialize the log handler. * * @param array $aParams * An array of log handler parameters. */ public static function initialize($aParams) { DKY_Log::$_path = $aParams["path"]; set_error_handler("DKY_Log::_errorHandler"); if (!empty(DKY_Log::$_path)) { if (!file_exists(DKY_Log::$_path)) { $logFile = fopen(DKY_Log::$_path, 'w'); fclose($logFile); } DKY_Log::$_bInitialized = true; } }