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. General Programming
  3. C#
  4. Exception Handling and Logging in windows application

Exception Handling and Logging in windows application

Scheduled Pinned Locked Moved C#
3 Posts 3 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
    arun_pk
    wrote on last edited by
    #1

    I would like to know the best way of handling exception and logging .. Please advise thanks in advance..

    D J 2 Replies Last reply
    0
    • A arun_pk

      I would like to know the best way of handling exception and logging .. Please advise thanks in advance..

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      arun_pk wrote:

      handling exception

      Try.....Catch blocks

      arun_pk wrote:

      logging

      Write your own logging class to write out to a text file or integrate with the Windows Event Log using System.Diagnostics.EventLog

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn


      Folding Stats: Team CodeProject

      1 Reply Last reply
      0
      • A arun_pk

        I would like to know the best way of handling exception and logging .. Please advise thanks in advance..

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        arun_pk wrote:

        the best way of handling exception

        Depends on business requirements and application. However there is unlikely to be a single answer to that even within a single application.

        arun_pk wrote:

        know the best way of ... logging

        Depends on business requirements an application. And can also depend on your definition of "logging" as well.

        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