Im new in using Microsoft Enterprise Library 3.1. Im trying to run database Logging.
I added the required configuration to the web config as mentioned in MSDN library. then I ran the script to generate logging tables and stored procedures.
I changed the formatter template to keep needed data. below is sample of my code
Dim ologEntry As LogEntry = New LogEntry()
.Severity = Diagnostics.TraceEventType.Error
.Title = "MSEntLib3.1"
.AppDomainName = AppDomain.CurrentDomain.BaseDirectory
.ProcessName = "TestFunction()"
.Message = "Informational message"
I faced an error that there are missing paramters then I modified writeLog stored Procedure to recieve the listed above paramaters, I test it on sql server its working fine, in my web page it doesnt rais an error and not inserting any data to the log table.
View Complete Post