So ages ago I wrote about using ETW as the proper way to log in .NET apps that run on Windows.
This is still true.
But now the tooling is even better. A shortfall always was that the auto generated manifest couldn't be installed into the event log and use standard event log collection tools to gather logs.
There is a package on Nuget that fills in the gaps - EventSource beta. It's a beta package but seems to be OK.
So go forth, and do structured logging, for the sake of yourselves and your operators.
This is still true.
But now the tooling is even better. A shortfall always was that the auto generated manifest couldn't be installed into the event log and use standard event log collection tools to gather logs.
There is a package on Nuget that fills in the gaps - EventSource beta. It's a beta package but seems to be OK.
So go forth, and do structured logging, for the sake of yourselves and your operators.
Comments
Post a Comment