Unfortunately the CaptureSqlFilter does not let the commands getting executed…
I’m a little confused. The scenario is that in case of an exception i want to Log the Sql Command, accompanied with the parameters.
If i understand correctly
LogManager.LogFactory = new ConsoleLogFactory(debugEnabled:true)
is used for debugging.
EDIT: (Well after further investigation on the source i can see that the pattern of
if (Log.IsDebugEnabled)
Log.DebugCommand(dbCmd);
is being used as the logging mechanic.
However this is something clearly for debugging since it logs everything.
Can i make the CaptureSqlFilter to only log the commands and not suppress them? I would be grateful for any suggestion.
Thanks in advance