ConnectionExtensions.GetLogger method
Gets the logger for a connection if it implements the IHasLogger interface, or null if not.
public static ILogger GetLogger(this IDbConnection connection)
| parameter | description |
|---|---|
| connection | The connection. |
Return Value
The logger for the connection (used by static SqlHelper methods).
See Also
- class ConnectionExtensions