Logging and emailing errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Logging and emailing errors

    Hi

    I would like to be able to log as much info as possible about an error in my
    app and the critical ones to be emailed to me. Is there a pre-built
    library/control that would do that?

    Many Thanks

    Regards


  • rowe_newsgroups

    #2
    Re: Logging and emailing errors

    On Aug 1, 8:29 am, "John" <i...@nospam.in fovis.co.ukwrot e:
    Hi
    >
    I would like to be able to log as much info as possible about an error inmy
    app and the critical ones to be emailed to me. Is there a pre-built
    library/control that would do that?
    >
    Many Thanks
    >
    Regards
    For the errors:

    System.Exceptio n

    For the email:

    System.Net.Mail

    Thanks,

    Seth Rowe [MVP]

    Comment

    • John

      #3
      Re: Logging and emailing errors

      I am guessing there isn't a library available to do this?

      Thanks

      Regards

      "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
      news:8adb3101-eda6-479a-ade7-01cfa0beabd0@r6 6g2000hsg.googl egroups.com...
      On Aug 1, 8:29 am, "John" <i...@nospam.in fovis.co.ukwrot e:
      Hi
      >
      I would like to be able to log as much info as possible about an error in
      my
      app and the critical ones to be emailed to me. Is there a pre-built
      library/control that would do that?
      >
      Many Thanks
      >
      Regards
      For the errors:

      System.Exceptio n

      For the email:

      System.Net.Mail

      Thanks,

      Seth Rowe [MVP]



      Comment

      • Cor Ligthert[MVP]

        #4
        Re: Logging and emailing errors

        John,

        There is "Eventlog" normally the errors you describe go in "applicatio n"



        Very simple to use by the way.

        Cor

        "John" <info@nospam.in fovis.co.ukschr eef in bericht
        news:OWymJV98IH A.4004@TK2MSFTN GP03.phx.gbl...
        >I am guessing there isn't a library available to do this?
        >
        Thanks
        >
        Regards
        >
        "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
        news:8adb3101-eda6-479a-ade7-01cfa0beabd0@r6 6g2000hsg.googl egroups.com...
        On Aug 1, 8:29 am, "John" <i...@nospam.in fovis.co.ukwrot e:
        >Hi
        >>
        >I would like to be able to log as much info as possible about an error in
        >my
        >app and the critical ones to be emailed to me. Is there a pre-built
        >library/control that would do that?
        >>
        >Many Thanks
        >>
        >Regards
        >
        For the errors:
        >
        System.Exceptio n
        >
        For the email:
        >
        System.Net.Mail
        >
        Thanks,
        >
        Seth Rowe [MVP]

        >

        Comment

        • rowe_newsgroups

          #5
          Re: Logging and emailing errors

          I am guessing there isn't a library available to do this?

          Not that I know of, though it'd only take a matter of minutes to code
          one yourself.

          By the way, why is this in the ADO.NET newsgroup?

          Thanks,

          Seth Rowe [MVP]

          Comment

          • Jim Rand

            #6
            Re: Logging and emailing errors

            Take a look at log4net. Just the ticket.

            "Cor Ligthert[MVP]" <notmyfirstname @planet.nlwrote in message
            news:64B25403-9A0B-4A6A-A641-8B058BB9C0E6@mi crosoft.com...
            John,
            >
            There is "Eventlog" normally the errors you describe go in "applicatio n"
            >

            >
            Very simple to use by the way.
            >
            Cor
            >
            "John" <info@nospam.in fovis.co.ukschr eef in bericht
            news:OWymJV98IH A.4004@TK2MSFTN GP03.phx.gbl...
            >>I am guessing there isn't a library available to do this?
            >>
            >Thanks
            >>
            >Regards
            >>
            >"rowe_newsgrou ps" <rowe_email@yah oo.comwrote in message
            >news:8adb310 1-eda6-479a-ade7-01cfa0beabd0@r6 6g2000hsg.googl egroups.com...
            >On Aug 1, 8:29 am, "John" <i...@nospam.in fovis.co.ukwrot e:
            >>Hi
            >>>
            >>I would like to be able to log as much info as possible about an error
            >>in my
            >>app and the critical ones to be emailed to me. Is there a pre-built
            >>library/control that would do that?
            >>>
            >>Many Thanks
            >>>
            >>Regards
            >>
            >For the errors:
            >>
            >System.Excepti on
            >>
            >For the email:
            >>
            >System.Net.Mai l
            >>
            >Thanks,
            >>
            >Seth Rowe [MVP]
            >http://sethrowe.blogspot.com/
            >>
            >

            Comment

            • kimiraikkonen

              #7
              Re: Logging and emailing errors

              On Aug 1, 3:29 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
              Hi
              >
              I would like to be able to log as much info as possible about an error in my
              app and the critical ones to be emailed to me. Is there a pre-built
              library/control that would do that?
              >
              Many Thanks
              >
              Regards
              You can try a something like that if your intention is to send e-mail
              immediately:

              Try

              ' Job here

              Catch ex As Exception
              'First, Optionally log them in a text file using StreamWriter
              including
              ' what error "ex" variable exposes
              ' Mail code implementation here
              ' See www.systemnetmail.com for mail

              Finally
              ' ....
              End Try


              Hope this helps,

              Onur

              Comment

              Working...