static function log( $logline, $out = '' ) {
		// Output log line, no error checking to save performance
		// Send to descriptor or other stream if resource passed
		if( is_resource($out) && fwrite( $out, "$logline\n" ) ){
			return true;
		}
		// Log to specified file
		else if( $out && error_log( "$logline\n", 3, $out ) ){
			return $out;
		}
		// else default - probably apache error log
		else if( error_log( $logline, 0 ) ){
			$out = ini_get('error_log');
			return $out ? $out : true;
		}
		else {
			return false;
		}
	}
static function log( $logline, $out = '' ) {
		// Output log line, no error checking to save performance
		// Send to descriptor or other stream if resource passed
		if( is_resource($out) && fwrite( $out, "$logline\n" ) ){
			return true;
		}
		// Log to specified file
		else if( $out && error_log( "$logline\n", 3, $out ) ){
			return $out;
		}
		// else default - probably apache error log
		else if( error_log( $logline, 0 ) ){
			$out = ini_get('error_log');
			return $out ? $out : true;
		}
		else {
			return false;
		}
	}
static function log ( $ logline , $ out = '' ) { // Output log line, no error checking to save performance // Send to descriptor or other stream if resource passed if ( is_resource ( $ out ) && fwrite ( $ out , "$logline\n" ) ) { return true ; } // Log to specified file else if ( $ out && error_log ( "$logline\n" , 3 , $ out ) ) { return $ out ; } // else default - probably apache error log else if ( error_log ( $ logline , 0 ) ) { $ out = ini_get ( 'error_log' ) ; return $ out ? $ out : true ; } else { return false ; } }
Log an error string.
@param string line to log
@param string|resource optional log file or stream resource to send output
@return mixed path logged to, true indicates successful non-file logging, or false on error
Log an error string .