Search code examples
c#.netnlog

how to remove the particular type of info from console NLog, .NET


I use .net 5 console application and I would like to remove this type of information(see screen) from the console logging, but I want to log in console Info, Warnings, Errors, Debug levels. How can I do it correctly using C# or nlog.config (XML)?

enter image description here


Solution

  • Looks like output from NLog InternalLogger: https://github.com/NLog/NLog/wiki/Internal-Logging.

    You can either change internalLogLevel="Warn" or disable output to console internalLogToConsole="false" (Is disabled by default).