SqlExecutionLogger
Manages the query-logging responsibility of the data layer.
Represents a sql parameter that can be serialized.
Gets or sets the log gateway used by this logger.
Initializes a new instance of SqlExecutionLogger leveraging the provided log gateway.
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.