Database logger not logging

Topics: Enterprise Library Core, Logging Application Block
Nov 29, 2010 at 10:04 PM
Edited Nov 29, 2010 at 10:44 PM

I have my logger utilitiy configured with a local database (Sql Server) and I ran the database scripts to create the database.

Used my service login and bound it to the logger table.

Built a testcase to log to the database but don't seem to get anything written to the database.  I'm assuming it may be in my formatter.....

I have the formatted listener bound to the standard text formatter.  Should I bind it to something else???

Nov 29, 2010 at 11:17 PM

Try configuring a flat file trace listener or other trace listener which you are sure you are able to use for logging under the Logging Errors and Warnings special category.  If there are any exceptions or failures that occurred during logging, check the destination log of those trace listeners since they will be used to log those exceptions. 


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.