<PackageReference Include="Relativity.Server.Utility.SDK" Version="14.2.7" />

SqlExecutionLogger

Manages the query-logging responsibility of the data layer.

Represents a sql parameter that can be serialized.

public ILogGateway LogGateway { get; }

Gets or sets the log gateway used by this logger.

protected SqlExecutionLogger(ILogGateway gateway)

Initializes a new instance of SqlExecutionLogger leveraging the provided log gateway.

protected virtual void Dispose(bool disposing)

public void Dispose()

Disposes this SqlExecutionLogger.

public SqlExecutionLogger LogAzureSqlTransientEvent(SqlException ex, int transientErrorAttemptNumber, int maxAttempts)

Logs a warning-level cancellation message.

public SqlExecutionLogger LogDeadlockEvent(SqlException ex, int deadlockAttemptNumber, int maxAttempts)

Logs a warning-level message that a query has deadlocked.

Logs a warning-level message indicating a query will be retried with different query hints.

public SqlExecutionLogger LogTimeoutRetryEvent(Exception ex, string timeoutType, int timeoutAttemptNumber, int maxAttempts)

public void LogUnknownFailureEvent(Exception ex, string dbName, string dbServer, string statement, IEnumerable<IDataParameter> parameters, int timeout, bool invalidOperationOccurred)

Logs a failure event for which a reason could not be determined.