-
-
Notifications
You must be signed in to change notification settings - Fork 120
Provide an implementation of ILogger from Microsoft.Extensions.Logging #175
Comments
I would happily accept a pull request with this in it. Now that we have a .NET Core build, it shouldn't be too much work getting it in. |
I just blogged about this the other day - https://www.neovolve.com/2018/06/07/ilogger-for-sentry/ That might meet your needs. |
Hi @roryprimrose ! Thank you for creating this integration over raven-csharp. With over 300.000 downloads, there were lots of requests for this. I'd like to mention that Sentry is working on unifying the API across the SDKs to help with developer experience and also maintenance/documentation. As part of this API unification we're designing it in a way where integrations can work together in order to augment the event data (aka: context). In the case of the .NET SDK, the first integrations we're considering due to demand are The code is on its own repo: |
We've just released the first preview of the It also brings in the It's possible to use only the I would love to get some feedback as we work toward a point release: It's on NuGet: Logging integration: https://www.nuget.org/packages/Sentry.Extensions.Logging/ Release on GitHub: Docs: I'm online on Gitter: https://gitter.im/getsentry/dotnet |
We've released the new SDK which solves this issue: https://github.com/getsentry/sentry-dotnet/releases https://www.nuget.org/packages/Sentry I'll close this issue but please feel free to reopen or open one in the new repository if you have any issues integrating. We'll be happy to help you moving over to the new SDK. |
Building on my comment on #125, support for .NET Core, an implementation that fits in
Microsoft.Extensions.Logging
should be provided. I have created my own project for it, copied the same buildup as from the Debug logger, and called itMicrosoft.Extensions.Logging.Raven
, for which I've attached the relevant source code.Feel free to use the attached as a base to build an "official" log provider for the MS log framework. :)
In the end, the code can be used like this:
Microsoft.Extensions.Logging.Raven.zip
The text was updated successfully, but these errors were encountered: