Top "Nlog" questions

NLog is a free logging platform for .NET

Should NLog flush all queued messages in the AsyncTargetWrapper when Flush() is called?

I want to shut down my application and write any pending log messages. So I call LogManager.Flush() during my …

c# silverlight nlog
Adding properties to log message in NLog in .net core

I am using NLog for logging messages in .net core. I have added NLog in StartUp.cs as follows: loggerFactory.…

asp.net-core .net-core nlog error-logging
Can I configure NLog to prune logs after they reach a certain limit?

Can NLog be configured to automatically prune/trim a log file after it reaches a certain file size?

.net nlog
Automatically log System.diagnostics.trace messages to an Nlog target

Say you have C# trace messages all over an application. Something like: Trace.TraceInformation("Service Started"); How do you automatically …

c# trace nlog system.diagnostics
Nlog not creating file relative to website project

I am using a website project, I added Nlog from Nuget, and used the following NLog configuration : <?xml version="1.0" …

asp.net webforms nlog
NLog Inner Exception Logging

I'm trying to log inner exception messages by using NLog. This is a piece of my NLog.config file: <…

logging nlog exception-logging
Is there a way to put NLog.config information inside of my app.config file?

Is there a way to put NLog.config information inside of my app.config file? This way I can have …

.net app-config nlog nlog-configuration
NLog configured to automatically log all exceptions?

Is there a way to configure NLog to automatically log all exceptions my application can send? Currently I am going …

c# nlog
NLog config file to get configuration setting values from a web.config

Is there a method to get a value from the <ApplicationSettings> section of a web.config within NLog …

web-config nlog appsettings
How to log exceptions with network targets in NLog

I am using the NLog logging framework and am trying to get exception and stacktrace information showing up in any …

exception networking stack-trace nlog sentinel