About 6,220,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 also sent to …

  2. c# - Why does my `NLog` logging command not log anything (despite …

    Feb 27, 2025 · I'm using NLog library for logging purposes. I have declared the following class: public partial class FenetrePrincipale : Form { #region NLog private static readonly Logger logger = LogMan...

  3. .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...

  4. NLog configuration in appsettings.json instead of nlog.config in .NET ...

    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 - appse...

  5. nlog - How to exclude specific loggers from a specific rule? - Stack ...

    Jul 9, 2025 · 45 In my NLog configuration, I have a catch-all logger but a specific logger I have created is very spammy and I want its output to go to its own file. That part is easy, but the catch-all logger …

  6. 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 have …

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

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

  8. 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 everything logging first,...

  9. 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 suggested below, …

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

    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 application of using …