Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Enterprise Library logger

Enterprise Library logger

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorialsharepointdatabase
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    A M SOMAN
    wrote on last edited by
    #1

    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

    A A 2 Replies Last reply
    0
    • A A M SOMAN

      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

      A Offline
      A Offline
      Ankur m
      wrote on last edited by
      #2

      This will tell you all: MSDN: Introduction to the Logging Application Block[^]

      ..Go Green..

      1 Reply Last reply
      0
      • A A M SOMAN

        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

        A Offline
        A Offline
        A M SOMAN
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups