Top "Nlog" questions

NLog is a free logging platform for .NET

Most useful NLog configurations

What are the best or most useful configurations for logging with NLog? (These can be simple or complex, as long …

.net logging mono nlog
log4net vs. Nlog

Anyone have experience for both? How do they stack up against each other? We are planning on using one of …

log4net nlog
NLog does not create a log file

I am trying to add logging to an application running on mobile device with Windows Mobile 6.1. � .NET Compact framework 3.5. using …

c# compact-framework nlog
Logger wrapper best practice

I want to use a nlogger in my application, maybe in the future I will need to change the logging …

c# .net logging nlog
How do I configure NLog to write to a database?

I'm trying to get NLog to write to a database, however with my current code it throws an exception when …

c# database nlog
Why won't my windows service write to my log file?

I have a windows service and use nlog for logging. Everything works fine when I run from the visual studio …

c# logging windows-services service nlog
Use NLog in ASP.NET Core application

I found a CodeProject with an example of how to get this to work, but it doesn't work. The main …

c# asp.net-core logging nlog microsoft-extensions-logging
Dependency injection and named loggers

I am interested in learning more about how people inject logging with dependency injection platforms. Although the links below and …

c# logging dependency-injection log4net nlog
How to get the Stack trace when logging exceptions with NLog?

When I use the default layout with NLog it only prints the name of the exception. I've been told that …

.net exception stack-trace nlog
How do I log a custom field in NLog to database?

I currently use NLog on a lot of projects. On some, I log to a database. Here is what I …

c# nlog