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. Error loging for application

Error loging for application

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
2 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.
  • R Offline
    R Offline
    ravibabu_kanaparthi
    wrote on last edited by
    #1

    Hi all, In my project we had system to log the exceptions through creating a text file for each day and writing the exceptions occured during tht day. The exceptions will be cathed through exception handling applied for necessary events. There is system class called using 'System.Diagnostics' in .net. Through which we can enter details in to a cutom log and we can see the details . My point is it better to use the application orinted logging as we are doing or Is it better to use the 'System.Diagnostics.EventLog()' for logging the errors. Is any one worked on these concepts..? Please let me know the details. Thanks and Regards, yeggu

    M 1 Reply Last reply
    0
    • R ravibabu_kanaparthi

      Hi all, In my project we had system to log the exceptions through creating a text file for each day and writing the exceptions occured during tht day. The exceptions will be cathed through exception handling applied for necessary events. There is system class called using 'System.Diagnostics' in .net. Through which we can enter details in to a cutom log and we can see the details . My point is it better to use the application orinted logging as we are doing or Is it better to use the 'System.Diagnostics.EventLog()' for logging the errors. Is any one worked on these concepts..? Please let me know the details. Thanks and Regards, yeggu

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, As you already know that the EventLog[^] class allows you to write information to the window event log, so you can use it in your application for logging. However, using only the event log for logging in an application should not be flexible as your clients sometimes might want your application to log in a text file, or a datastore... other than the event log. So it is better to use a library like the log4net[^] or the Logging Application Block[^] in the Enterprise Lib for logging as they provide many more options.

      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