public static function errorHandler($type = E_USER_NOTICE, $error = 'Undefined Error', $errFile = null, $errLine = null, $context = null) 
    {
        // Check type
        $thisType = self::getType($type);
        $LOG = array('type' => (!is_null($thisType) ? $thisType : 'ERROR'),
            'message' => (!is_null($error) ? $error : ''),
            'logFile' => (!is_null($errFile) ? $errFile : ''),
            'logLine' => (!is_null($errLine) ? $errLine : ''),
            'context' => (!is_null($context) ? $context : ''),
            'runtime' => round(self::getRelativeTime(), 4),);
        self::$Logs[] = $LOG;
    }
public static function errorHandler($type = E_USER_NOTICE, $error = 'Undefined Error', $errFile = null, $errLine = null, $context = null) 
    {
        // Check type
        $thisType = self::getType($type);
        $LOG = array('type' => (!is_null($thisType) ? $thisType : 'ERROR'),
            'message' => (!is_null($error) ? $error : ''),
            'logFile' => (!is_null($errFile) ? $errFile : ''),
            'logLine' => (!is_null($errLine) ? $errLine : ''),
            'context' => (!is_null($context) ? $context : ''),
            'runtime' => round(self::getRelativeTime(), 4),);
        self::$Logs[] = $LOG;
    }
public static function errorHandler ( $ type = E_USER_NOTICE , $ error = 'Undefined Error' , $ errFile = null , $ errLine = null , $ context = null ) { // Check type $ thisType = self :: getType ( $ type ) ; $ LOG = array ( 'type' => ( ! is_null ( $ thisType ) ? $ thisType : 'ERROR' ) , 'message' => ( ! is_null ( $ error ) ? $ error : '' ) , 'logFile' => ( ! is_null ( $ errFile ) ? $ errFile : '' ) , 'logLine' => ( ! is_null ( $ errLine ) ? $ errLine : '' ) , 'context' => ( ! is_null ( $ context ) ? $ context : '' ) , 'runtime' => round ( self :: getRelativeTime ( ) , 4 ) , ) ; self :: $ Logs [ ] = $ LOG ; }
System that redirects the errors to the appropriate logging method.

@param int $type Error-type, Pre defined PHP Constant
@param string error. The error itself
@param string File. The absolute path of the file
@param int Line. The line on which the error occured.
@param array context. Some of the error's relevant variables
System that redirects the errors to the appropriate logging method .