Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Event Source Name in EventLog Event Log entries #182

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

bobsira
Copy link
Contributor

@bobsira bobsira commented Aug 13, 2024

With this change Event Log now has the EventSource entry. Observe the example log emitted with this change.

{
  "Source": "EventLog",
  "LogEntry": {
    "EventSource": ".NET Runtime",
    "Time": "2024-05-15T23:53:41.000Z",
    "Channel": "Application",
    "Level": "Error",
    "EventId": 1026,
    "Message": "Application: VSUpdateHelper.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.Runtime.InteropServices.COMException\n   at Microsoft.VisualStudio.Setup.Services.ProcessService.GetShellDispatchForLoggedInUser()\n   at Microsoft.VisualStudio.Setup.Services.ProcessService.RunAsLoggedOnUser(System.String, System.String)\n   at Microsoft.VisualStudio.Setup.VSUpdateHelper.ToastService.StartProcess(Microsoft.VisualStudio.Setup.ToastNotifications.ToastMessageType)\n   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\n   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)\n   at System.Threading.TimerQueueTimer.CallCallback()\n   at System.Threading.TimerQueueTimer.Fire()\n   at System.Threading.TimerQueue.FireNextTimers()\n\n"
  }
}

@bobsira bobsira merged commit 142b5a1 into main Aug 14, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants