EventLog.WriteEntry
From: Bernard (anonymous_at_discussions.microsoft.com)
Date: 11/25/04
- Next message: georg andersson: "detect shutdown of other application"
- Previous message: Kajal Sinha: "RE: reusing TcpClient object"
- Next in thread: Joyjit Mukherjee: "Re: EventLog.WriteEntry"
- Reply: Joyjit Mukherjee: "Re: EventLog.WriteEntry"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Nov 2004 22:06:34 -0800
I created a custom event log and using the WriteEntry
method created an entry
<code>
EventLog.WriteEntry("SPR BackOffice","Some message"
logged on", EventLogEntryType.Information, 1001);
</code>
This all worked very well - however the User field in my
Custom Event Log was not populated - i.e. Going to the
Event Viewer and checking out the entry had all the data
including date and time. the only field not populated was
the User Field - it had N/A - was hoping for the logged
on user - no parameter to pass this through on WriteEntry
method
- Next message: georg andersson: "detect shutdown of other application"
- Previous message: Kajal Sinha: "RE: reusing TcpClient object"
- Next in thread: Joyjit Mukherjee: "Re: EventLog.WriteEntry"
- Reply: Joyjit Mukherjee: "Re: EventLog.WriteEntry"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|