Enterprise Library logger
-
Hi, Can anybody please give me links or matarial which can explain step by step how to log errors into database table with Enterprise library 4.1 Logging Application Block? Also where to find the required definitions of table "Log" and SP "WriteLog"? Here is the scenario: - I am creating a web application in ASP.NET MVC project with Visual Studio 2008 - I have included reference to following 2 Microsoft Enterprise Library 4.1 dlls Microsoft.Practices.EnterpriseLibrary.Logging Microsoft.Practices.EnterpriseLibrary.Logging.Database Thanks in advance
-
Hi, Can anybody please give me links or matarial which can explain step by step how to log errors into database table with Enterprise library 4.1 Logging Application Block? Also where to find the required definitions of table "Log" and SP "WriteLog"? Here is the scenario: - I am creating a web application in ASP.NET MVC project with Visual Studio 2008 - I have included reference to following 2 Microsoft Enterprise Library 4.1 dlls Microsoft.Practices.EnterpriseLibrary.Logging Microsoft.Practices.EnterpriseLibrary.Logging.Database Thanks in advance
-
Hi, Can anybody please give me links or matarial which can explain step by step how to log errors into database table with Enterprise library 4.1 Logging Application Block? Also where to find the required definitions of table "Log" and SP "WriteLog"? Here is the scenario: - I am creating a web application in ASP.NET MVC project with Visual Studio 2008 - I have included reference to following 2 Microsoft Enterprise Library 4.1 dlls Microsoft.Practices.EnterpriseLibrary.Logging Microsoft.Practices.EnterpriseLibrary.Logging.Database Thanks in advance
Thanks for the link. It works perfect with Database Trace Listener. The data is being saved in "Log" table through "WriteLog" procedure. But if I want my onw custom data to be inserted in my custom table, then how to configure this? Say I want to log the data in my table "ErrorLog" ErrorLog table: ------------------- ErrorID INT ErrorMessage VARCHAR(1500) And my procedure may be say "pr_LogErrors" which accespts one parameter say "@ErrorMessage"? I tried changing the proc name in listener property "writeLogStoredProcName" but this does not work and gives error like the stored proc has too many arguments. any idea? Thanks.