<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview2.25289.6" />

Microsoft.Data.SqlClient.SqlClientLogger

public class SqlClientLogger
Represents a SQL client logger.
public bool IsLoggingEnabled { get; }

Gets a value that indicates whether bid tracing is enabled.

public SqlClientLogger()

Initializes a new instance of the SqlClientLogger class.

public bool LogAssert(bool value, string type, string method, string message)

Logs the specified message if value is false.

public void LogError(string type, string method, string message)

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

public void LogInfo(string type, string method, string message)

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

public void LogWarning(string type, string method, string message)

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