SqlClientLogger Class

Definition

Represents a SQL client logger.

C#
public class SqlClientLogger
Inheritance
SqlClientLogger

Constructors

Properties

IsLoggingEnabled

Gets a value that indicates whether bid tracing is enabled.

Methods

LogAssert(Boolean, String, String, String)

Logs the specified message if value is false.

LogError(String, String, String)

Logs an error through a specified method of the current instance type.

LogInfo(String, String, String)

Logs information through a specified method of the current instance type.

LogWarning(String, String, String)

Logs warning through a specified method of the current instance type.

Applies to

Produkt Verzie
SqlClient .NET Core 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Framework 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2
SqlClient .NET Standard 4.0, 4.1, 5.0, 5.1, 5.2