Add tracing / debug info for NLog


We would like to add tracing (as per this article, but we use NLog and can’t see how we can enable for our existing logging.

Any help appreciated.


We use the standard ASP.NET Core logging API. This means that NLog may be used to capture these log entries. Just ensure the “ComponentSpace” logging level is set to debug as described at:

I replaced the Serilog configuration in the ExampleServiceProvider with NLog and confirmed logging worked as expected.