Interface IDataQueryLogger
- Namespace
- FluentCommand
- Assembly
- FluentCommand.dll
An interface for logging queries
public interface IDataQueryLogger
Methods
LogCommand(IDbCommand, TimeSpan, Exception, object)
Log the current specified command
void LogCommand(IDbCommand command, TimeSpan duration, Exception exception = null, object state = null)
Parameters
command
IDbCommandThe command to log.
duration
TimeSpanThe execution duration.
exception
ExceptionThe exception thrown when executing the command.
state
objectThe state used to control logging.