Runtime: Port EventLog to .NET Core

Created on 15 Mar 2016  路  16Comments  路  Source: dotnet/runtime

This includes System.Diagnostics.EventLog and friends.

area-System.Diagnostics enhancement

Most helpful comment

Please add a thumbs up to top post if this is relvant to you.

All 16 comments

This isn't in the Mono mobile subset. Only
EventLogEntryType

This is not currently in .NET Standard 2.0. It would be an extension. It probably isn't useful to have an issue for it.

Let's use this to track interest in System.Diagnostics.EventLog.

Please add a thumbs up to top post if this is relvant to you.

completed - available in myget, expect on nuget in mid November.

Any update on when it will be available on nuget?

@danmosemsft Is the nuget package for this available currently?

@ppman11 yes it's on nuget here:
https://www.nuget.org/packages/System.Diagnostics.EventLog/4.5.0-preview1-26216-02

If you need compat shims (ie., you want to reuse a binary that was built against .NET Framework) you also need https://www.nuget.org/packages/Microsoft.Windows.Compatibility.Shims/2.0.0-preview1-26216-02

Normally these would be wrapped up in a metapackage but there has been a delay in publishing that due to a name conflict.

@danmosemsft Thanks Dan. That was helpful.

What about linux, or dockerized linux .netcore containers? where does the EventLog save the logs?

@MohsenBzm this is Windows only and may never have Linux functionality. It is ported to help Windows based code move to Core. In some cases we r have gone further eg for Drawing we ship the Mono version for Linux.
What are you trying to achieve?

It seems to be written to /var/log/message

Can you use System.Diagnostics.EventLog on .NET Core to query nested event logs from Applications and Services, like Microsoft-Windows-PowerShell/Operational ?

If not, what's the alternative to query those logs on .NET Core?

@theimowski it has the same functionality as on desktop framework so I assume so.
If necessary please open a new issue : it's easy to miss comments on a closed one like this.

Was this page helpful?
0 / 5 - 0 ratings