-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
How to write a custom logging provider #11842
Comments
It would also be nice if this example showed how to pass a dependency to the custom logging provider. I'm trying to figure out how to implement an |
This article is pretty long-winded but gets the job done, so it could maybe be adapted for MS docs? https://www.codeproject.com/Articles/1556475/How-to-Write-a-Custom-Logging-Provider-in-ASP-NET Edit: this one is a lot more concise https://asp.net-hacker.rocks/2017/05/05/add-custom-logging-in-aspnetcore.html |
@IanKemp Thanks for sharing my post here as an example. If it's okay for you all, I would be glad to write that documentation. :-) |
@JuergenGutsch let me know what I can do to help. If you want to create a PR with the content, I can clean it up or assign someone to do that. |
This is tracked in #16174 |
@serpent5 can you add a link to additional resources
The sample looks solid to me. |
@JuergenGutsch let me know if you'd like to provide a sample. We can help you through the PR process. The easiest way to do this is:
I'll then migrate your readme.txt file to this logging MD file. Feel free to add the instructions directly to the Content Source: aspnetcore/fundamentals/logging/index.md and I'll edit your PR. |
Hey @Rick-Anderson I'm going to start adding the sample later today :-) |
@JuergenGutsch awesome. Let me know what I can do to help. |
* Add a section in the docs aspnetcore/fundamentals/logging/index.md * Add a sample at aspnetcore/fundamentals/logging/loggermessage/samples/3.1/CustomLogger
@Rick-Anderson I just created the PR (#18252) |
* Add custom logger documentaions (#11842) * Add a section in the docs aspnetcore/fundamentals/logging/index.md * Add a sample at aspnetcore/fundamentals/logging/loggermessage/samples/3.1/CustomLogger * Custom loggiing * Custom loggiing * Custom loggiing * Custom loggiing * Custom loggiing * Custom loggiing * Apply suggestions from code review Co-authored-by: Brennan <brecon@microsoft.com> * react to feedback * react to feedback * react to feedback Co-authored-by: Juergen Gutsch <juergen@gutsch-online.de> Co-authored-by: Brennan <brecon@microsoft.com>
One reason for needing a new doc about writing custom logging providers: no built-in logging providers are available that can be used to follow the advice in the No asynchronous logger methods section. See #11801
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: