Tracing to database

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

    Tracing to database

    I was looking at tracing and the way you can write to an axd file. Is there
    any way of writing this information to a database but only when the page
    errors.


  • HillBilly

    #2
    Re: Tracing to database

    Now when there is a SqlException :-)

    "Fresno Bob" <nospam@nospam. comwrote in message
    news:OjJ02Hv%23 IHA.2352@TK2MSF TNGP02.phx.gbl. ..
    >I was looking at tracing and the way you can write to an axd file. Is there
    >any way of writing this information to a database but only when the page
    >errors.
    >

    Comment

    • Fresno Bob

      #3
      Re: Tracing to database

      Ha ha :) I was thinking - write to db if you can. Just because a given line
      of code generates an SqlException doesn't mean the database can't be written
      to.

      "HillBilly" <somebody@somew here.comwrote in message
      news:%23GeGQTw% 23IHA.4020@TK2M SFTNGP03.phx.gb l...
      Now when there is a SqlException :-)
      >
      "Fresno Bob" <nospam@nospam. comwrote in message
      news:OjJ02Hv%23 IHA.2352@TK2MSF TNGP02.phx.gbl. ..
      >>I was looking at tracing and the way you can write to an axd file. Is
      >>there any way of writing this information to a database but only when the
      >>page errors.
      >>
      >

      Comment

      • HillBilly

        #4
        Re: Tracing to database

        I've observed most developers write their logs to the file system directly
        as it doesn't get any more fundamental than that. Some mail themselves an
        alert. All the code snippets are out there to be found regardless of where
        you want to put it.

        In fact I just had a clever thought about logging the exceptions to a blog
        which is where the word came from in the first place. Hmmmm not a bad
        concept; everything old is new again.


        "Fresno Bob" <nospam@nospam. comwrote in message
        news:%23JW4Djw% 23IHA.1016@TK2M SFTNGP03.phx.gb l...
        Ha ha :) I was thinking - write to db if you can. Just because a given
        line of code generates an SqlException doesn't mean the database can't be
        written to.
        >
        "HillBilly" <somebody@somew here.comwrote in message
        news:%23GeGQTw% 23IHA.4020@TK2M SFTNGP03.phx.gb l...
        >Now when there is a SqlException :-)
        >>
        >"Fresno Bob" <nospam@nospam. comwrote in message
        >news:OjJ02Hv%2 3IHA.2352@TK2MS FTNGP02.phx.gbl ...
        >>>I was looking at tracing and the way you can write to an axd file. Is
        >>>there any way of writing this information to a database but only when the
        >>>page errors.
        >>>
        >>
        >
        >

        Comment

        • Sriram Srivatsan

          #5
          Re: Tracing to database

          Log4Net is a good choice I would suppose. Does most of the stuff to do and
          its powerful, extensible and multi-threaded.


          "HillBilly" <somebody@somew here.comwrote in message
          news:uf5bA8y%23 IHA.4156@TK2MSF TNGP02.phx.gbl. ..
          I've observed most developers write their logs to the file system directly
          as it doesn't get any more fundamental than that. Some mail themselves an
          alert. All the code snippets are out there to be found regardless of where
          you want to put it.
          >
          In fact I just had a clever thought about logging the exceptions to a blog
          which is where the word came from in the first place. Hmmmm not a bad
          concept; everything old is new again.
          >
          >
          "Fresno Bob" <nospam@nospam. comwrote in message
          news:%23JW4Djw% 23IHA.1016@TK2M SFTNGP03.phx.gb l...
          >Ha ha :) I was thinking - write to db if you can. Just because a given
          >line of code generates an SqlException doesn't mean the database can't be
          >written to.
          >>
          >"HillBilly" <somebody@somew here.comwrote in message
          >news:%23GeGQTw %23IHA.4020@TK2 MSFTNGP03.phx.g bl...
          >>Now when there is a SqlException :-)
          >>>
          >>"Fresno Bob" <nospam@nospam. comwrote in message
          >>news:OjJ02Hv% 23IHA.2352@TK2M SFTNGP02.phx.gb l...
          >>>>I was looking at tracing and the way you can write to an axd file. Is
          >>>>there any way of writing this information to a database but only when
          >>>>the page errors.
          >>>>
          >>>
          >>
          >>
          >

          Comment

          Working...