I'm just attempting to get database logging up and running. At the moment, i'm having issues getting anything written at all to the table! For setup, i ran the sql script to create the tables and stored procedures in my own database (not the logging database).
I've then setup my Data Access block, exeption handling block, and my logging block. I was under the impression that once setup correctly, i'd just have to call .HandleException(ex, "Policy Name Here") to log to my chosen handler? This is how i
use to do it when logging to a flat file sink.
However i read everywhere that you need to create a logentry and use the Logger.Write() method to actually write to the DB. This sort of doesn't make sense as i can't choose the exception policy.
I'm getting no exceptions what so ever and nothing is being written to the log table (with both HandleException or Logger.Write). I'm sort of at a loss here. If samples of my web.config are needed please let me know.