简体   繁体   中英

Application Event Log with User Details

I have an eventlogger with exception in the app.config file. How can I update the USER details in the eventlog? Now its showing User : N/A

Thanks for your help...

See the MSDN page for EventLogEntry.UserName : "This property is often blank for events in logs other than the Security log."

I can't recall exactly where I read it, but I think it is even stronger than that. No other EventLog log can set the User attribute (and applications cannot write to the Security event log). So I think, what you try to do is not possible.

If it is indeed possible I would be interested as well ;-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM