Is writing to the event log in Application_BeginRequest a good idea?

N

Nemisis

Hi everyone,

This is the first real .net web application that i have begun to
write
and i was wondering whether it is ok, to write to the eventlog in the
Application_BeginRequest event within the global.asax file?


I was gonna write some basic details such as the username requesting
the page, the name of the page, and any querystring parameters
passed. I thought this would be useful for finding any errors that
occur, but also to keep track of what pages are being accessed, used
most etc.


Can any experts out there suggest if this is a good thing or bad
thing
to do, or whether i should be thinking of doing this a different way?


Thanks in advanced
 
G

Guest

Hi everyone,

This is the first real .net web application that i have begun to
write
and i was wondering whether it is ok, to write to the eventlog in the
Application_BeginRequest event within the global.asax file?

I was gonna write some basic details such as the username requesting
the page, the name of the page, and any querystring parameters
passed. I thought this would be useful for finding any errors that
occur, but also to keep track of what pages are being accessed, used
most etc.

Can any experts out there suggest if this is a good thing or bad
thing
to do, or whether i should be thinking of doing this a different way?

Thanks in advanced

Using IIS log, you can gather the same information, I think. Why don't
you use it?
 
S

senfo

Alexey said:
Using IIS log, you can gather the same information, I think. Why don't
you use it?

Furthermore, saving all of that information to the event log will likely
cause your event log to fill rather quickly.

I have not had much experience with IIS log files, but in my experience
with Apache, the log files supply more than enough information to aide
in profiling your users, as well as provide detailed security
information that can help you in the event of a security breach.
Additionally, if the IIS log file is anything like that of Apache, there
are likely many applications written to parse the data and turn it into
very detailed information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top