locked
Database Logging using Enterprise Library 2.0 RRS feed

  • Question

  • User-39710340 posted

     hi all,

    Can anyone help me how to go about database logging using enterprise library 2.0.plz help me out to create a sample application where in i can send the log data to the sql db.Thanks in advance.

    regards,

    JOn 

    Thursday, October 11, 2007 1:31 AM

All replies

  • User-1496502028 posted

    This is easy as the  Logging and Instrumentation Application Block provides six Log Sinks:

    • Event Log – writes to a Windows Event Log;
    • Flat File – writes to a text file;
    • Microsoft Message Queuing – writes to a message queue;
    • E-mail – sends Log Entries via an SMTP server;
    • Database – executes a stored procedure for each LogEntry;
    • WMI Log – fires WMI events.

    for a complete example read this articleon codeproject http://www.codeproject.com/dotnet/GetLoggingWithEntLib.asp

     

    Wednesday, October 17, 2007 4:48 AM
  • User-39710340 posted

     i know how to write into a flat file.but my requirement is to right into one database. i want to design my own database and tables and right my own stored procedures.How to do that?.plz help me out ...thanks in advance.

    regards,

    Jon. 

    Wednesday, October 17, 2007 5:55 AM
  • User-1496502028 posted

    Ok i get it this is a great sample on gotdotnet for looging using Database and email

    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=3685caae-0e0f-4ccc-a87b-93ec8ff1e5ae

    Wednesday, October 17, 2007 8:58 AM