Logging SuccessAudit EventLogEntryType

Topics: Logging Application Block
Jul 12, 2007 at 6:08 PM
I need to log a message into the event viewer with the EventLogEntryType SuccessAudit. How can I map TraceEventType that LogEntry accepts to a EventLogEntryType?
Jul 12, 2007 at 7:50 PM
Hi,


kolinger wrote:
I need to log a message into the event viewer with the EventLogEntryType SuccessAudit. How can I map TraceEventType that LogEntry accepts to a EventLogEntryType?


Unfortunately the mapping from TraceEventType to EventLogEntryType is performed by the framework's EventLogTraceListener and it doesn't consider SuccessAudit. You could write your own trace listener that talks to the EventLog API and implement this custom mapping logic.

Hope this helps,
Fernando