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. Error Logger

Error Logger

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

    I want to create error logger file which will contain every error message, file name, method name and line number this is first Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me i want to know also microsoft error categories

    Z D A 3 Replies Last reply
    0
    • R rmedo

      I want to create error logger file which will contain every error message, file name, method name and line number this is first Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me i want to know also microsoft error categories

      Z Offline
      Z Offline
      zagzagzag
      wrote on last edited by
      #2

      You could start off with coding all of your functions with try{} catch{} statements. Then, each time an error occours you can write the error to a file.

      1 Reply Last reply
      0
      • R rmedo

        I want to create error logger file which will contain every error message, file name, method name and line number this is first Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me i want to know also microsoft error categories

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        rmedo wrote: I want to create error logger file which will contain every error message, file name, method name and line number this is first In debug or release mode? rmedo wrote: Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me i want to know also microsoft error categories I don't know if Microsoft has "error categories". I'd let it to user of your error logger to decide which thrown exception has High category or something. e.g. myLogger.Log(Exception ex, Category c). I've done something similar, you can take a look here[^]. Never forget: "Stay kul and happy" (I.A.)
        David's thoughts / dnhsoftware.org / MyHTMLTidy

        1 Reply Last reply
        0
        • R rmedo

          I want to create error logger file which will contain every error message, file name, method name and line number this is first Second I want to categorized this errors, E.x (High, Low ..and so on) so if any one have any idea please help me i want to know also microsoft error categories

          A Offline
          A Offline
          AETaylor
          wrote on last edited by
          #4

          I've always used CodeSite[^]

          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