I'm using the Enterprise Library Logging application block to allow my application to log various events. This is working fine and the logs can be seen by Event Viewer (eventvwr.exe) going into the Application log.
However, Event Viewer always shows the user field as "N/A". Other applications have the field populated - how do I populate this field?
I have got the current user logged into the exteneded properties of the log entry (using the UnmanagedSecurityContextInformationProvider). This means that I can capture the username and have it appear within Event Viewers 'Description' text box - but I cannot use EventViewers filtering to see one users log entries.