About 5,420,000 results
Open links in new tab
  1. c# - Use NLog in ASP.NET Core application - Stack Overflow

    Jan 8, 2016 · How to use: Setup NLog needs to be enabled so it will integrate into the DI and log API of ASP.NET Core. This will result that all logs written by externals (e.g. Microsoft) will be …

  2. .net - Most useful NLog configurations - Stack Overflow

    What are the best or most useful configurations for logging with NLog? (These can be simple or complex, as long as they're useful.) I'm thinking of examples like automatically rolling over log fi...

  3. NLog configuration in appsettings.json instead of nlog.config in …

    The NLog documentation explains how to configure NLog for .NET Core applications by using an nlog.config XML file. However, I'd prefer to have just one configuration file for my application - …

  4. Manage logging configuration with NLog in .NET Core 3

    Jan 8, 2020 · I'm using NLog in a .NET Core 3.1 worker service application. Following the tutorial of NLog I inserted an nlog.config file to manage the configuration. Now I'm confused because I …

  5. How do I correctly add NLog to a .NET 5 Console App?

    Sep 9, 2021 · I am trying to add NLog to a .NET 5 console app. I understand I will want to not hard code some of these settings, and link a appsettings file soon, but I jsut want to get …

  6. Adding properties to log message in NLog in .net core

    The answers so far doesn't really answer your question, do they? The challenge here is to convey NLog event properties to NLog via the .NET Core NLog provider. Using NLog directly, as …

  7. How to configure NLog to only log from a certain level for a …

    Apr 12, 2016 · Learn how to configure NLog to log messages from specific levels for a logger namespace.

  8. console - What's the correct way to set up NLog for logging in a …

    Dec 1, 2020 · What is the correct way to set up NLog logging for a .NET Core console application? I see there is mention in Wiring and injected NLog into a .Net Core console …

  9. NLog does not create a log file - Stack Overflow

    I am trying to add logging to an application running on mobile device with Windows Mobile 6.1. .NET Compact framework 3.5. using NLog. I have the appropriate version of the NLog …

  10. How to include logging scope into the log file using NLog

    Feb 22, 2020 · I'm using NLog.Extensions.Logging. When registering a logger factory using the method AddNLog(), it is possible to enable logging scope using …