I am new to Enterprise Library, previously i was using Log4Net.
by using EL4.1 it is very easy to log to a flat file. i have been trying to log into database. but i didnt find any sample on that. can any one provide me a sample which helps me to work on Logging the log to Database.
it should cover by using the Stored Procedure, query
I have added a Database Trace Listener
and given the Connection string
then used in class like this
LogEntry entry = new LogEntry()
Message = "Hello Ent. Lib. Logging 123",
Severity = TraceEventType.Critical
for (int i = 0; i < 100; i++)
it is running fine , but i am unable to any info in DB, even i didnt mentioned any query to config file, i didnt created any table to loginfo (I looking info on those steps )
can any one help me out on this