What sort of events do you want to record? For low frequency events
you could queue up events and write them to a file in a synchronized
method. You could also consider writing them to a database table.
For exception monitoring, writing to the Windows event log or sending
an email are good options.
For high frequency events consider using performance coutners. You can
view these in perfmon while the application is running.
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 19 Nov 2004 12:29:09 -0800, "MikeL"
<Mi***@discussions.microsoft.com> wrote:
Matt,
Try using asynchnous web service calls to log pages into a database.
"Matt" wrote:
I have an ASP.Net page that receives batch transmissions of data from
clients. I would like to add some type of logging to this application so I
can review transmission issues easily. I tried writing to a file but
quickly found when multiple clients are hitting the web page at the same
time it causes all kinds of issues with multiple threads trying to use the
same file. I was wondering if anyone has a solution they would like to
share and any type of sample would be wonderful.
Thanks,
Matt