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;
		}
	}