Creating a new event log

  • Thread starter Thread starter Robin
  • Start date Start date
R

Robin

On a Windows 2003 server how do you create a new event log that can be
written to from an Asp.Net page?
 
As long as your ASP.Net account has permission to do so:

if (!EventLog.SourceExists(EventLogSource))
EventLog.CreateEventSource(EventLogSource, EventLogName);
EventLog Log = new EventLog();
Log.Source = EventLogSource;

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 

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

Back
Top