-
Notifications
You must be signed in to change notification settings - Fork 165
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
Add ${aspnet-request-posted-body} - log posted request body/payload #103
Comments
code non-core:
|
in .NET Core:
|
Is there an update on this one? I came here via Google to one of the closed issues and the link in this thread is dead. Not sure? |
Nope, PR accepted ;) I will try to find a working link... |
link updated! |
-> #339 |
Hi, Is this feature available in NLog.Web.AspNetCore 4.8.0? I can see the code https://github.com/NLog/NLog.Web/blob/master/NLog.Web.AspNetCore/LayoutRenderers/AspNetRequestPostedBody.cs, But I am clueless how to use it? |
Hi! This is fixed for 4.8.1, but not released yet. I will try to release this, this evening. (utc +1 here) When released, you could use |
Thank you very much. |
Thanks, I applied, It works very well. |
Thanks for the confirmation 👍 |
#754 has reverted this in NLog.Web ver. 5.0 |
Thanks to @bakgerman now NLog.Web.AspNetCore v5.1 re-introduces ${aspnet-request-posted-body} with help from middleware: app.UseMiddleware<NLog.Web.NLogRequestPostedBodyMiddleware>(); It is no longer necessary to explicit call |
Render posted value
Tricky because we need to reset the inputstream and set it back?
Also limit the chars (e.g. when a file is uploaded)
The text was updated successfully, but these errors were encountered: