コード例 #1
0
ファイル: Log.php プロジェクト: nicholas-robson/php-webapp
 /**
  * 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;
     }
 }