jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Tech / everything · hot matching “nlog”

2 shown · updated 2m ago · read only
  1. Logging response body in ASP.Net Core 3.1 API (stackoverflow.com)stack

    17 points by Ilias Tsakiridis in stackoverflow.com · 6y ago · stack comments

    Recently I started developing an API for the company I work for. After some research we resulted to using NLog as a logging library and it has a Layout Renderer for logging the posted request body, so that's good. But, there is also a need for logging the response, the time it t…
  2. NLog include EventId in log file (stackoverflow.com)stack

    14 points by Jesse in stackoverflow.com · 7y ago · stack comments

    The ILogger in .NETCore 2.2 has a EventId parameter. public static void LogError(this ILogger logger, EventId eventId, string message, params object[] args); How can I get NLog to output this to the log file? My nlog.config: <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="h…
    filed under c#asp.net-corenlog