C
Cramer
I plan to implement an exception logging feature in an ASP.NET Web
application that writes encountered exceptions to disk. The exception data
will be stored as XML.
I am planning on having each exception written to its own XML file. I plan
to NOT append exceptions to a single XML file because I don't want for the
exception logging component to have to deal with contention for access to
the file. This is possible when, for example, multiple sessions of the Web
application are encountering the exception at the same time... each would
want access to the file. So rather than having "the file" (one file), I'm
thinking that it might be good to have the exception logging component keep
track of which exceptions have already been logged (within a sliding window)
and log only the exceptions that have not yet been logged. This would
prevent excessive logging of the exact same exception.
Thoughts?
I can't be the first person to come up with a robust exception logging
capability for ASP.NET Web applications - in which thousands of sessions
could encounter the exact same exception simultaneously (or within seconds
of each other).
Any suggestions to help me not "re-invent the wheel" on this would be much
appreciated.
-Cramer
application that writes encountered exceptions to disk. The exception data
will be stored as XML.
I am planning on having each exception written to its own XML file. I plan
to NOT append exceptions to a single XML file because I don't want for the
exception logging component to have to deal with contention for access to
the file. This is possible when, for example, multiple sessions of the Web
application are encountering the exception at the same time... each would
want access to the file. So rather than having "the file" (one file), I'm
thinking that it might be good to have the exception logging component keep
track of which exceptions have already been logged (within a sliding window)
and log only the exceptions that have not yet been logged. This would
prevent excessive logging of the exact same exception.
Thoughts?
I can't be the first person to come up with a robust exception logging
capability for ASP.NET Web applications - in which thousands of sessions
could encounter the exact same exception simultaneously (or within seconds
of each other).
Any suggestions to help me not "re-invent the wheel" on this would be much
appreciated.
-Cramer