EventLogWebEventProvider: How to specify Category and Source?

  • Thread starter Thread starter Max2006
  • Start date Start date
M

Max2006

Hi,

We are using EventLogWebEventProvider. All events within the event log
viewer appear as :

Type=Warning
Source= ASP.NET 2.0.50727.0
Category= Web Event

Is there any way to customize above settings in web.config?

Thank you,
Max
 
Hi Max,

AS for the Eventlog Healthmoniting provider, the "Type", "Source" ,
"Category" is fixed by the provider so as to indicate that the log entry is
producted by ASP.NET web event provider rather than any other custom code
(that write eventlog) in ASP.NET. BTW, one way is to create a custom web
event log provider, however that may require us to scrabble all the
eventlog code ourself.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
 
Back
Top