Top "Nlog" questions

NLog is a free logging platform for .NET

Why do loggers recommend using a logger per class?

As per NLog's documentation: Most applications will use one logger per class, where the name of the logger is the …

c# log4net logging nlog
How do you log errors (Exceptions) in your ASP.NET apps?

I'm looking for the best way to log errors in an ASP.NET application. I want to be able to …

asp.net error-handling nlog health-monitoring
NLog time formatting

How do I write a layout for NLog that outputs time with milliseconds like this 11:32:08:123? I use ${date:format=yyyy-MM-dd …

nlog
Where is ${basedir} located, using NLog?

Unless I'm totally missing it, I'm under the impression that the NLog documentation uses ${basedir} in its examples, without explaining …

c# .net vb.net logging nlog
reconfiguring NLog programmatically

This is my first time using the NLog package for logging but so far its been great to work with. …

.net logging nlog
How to get path of current target file using NLog in runtime?

I use NLog with next configuration: <targets> <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.…

c# nlog
Update NLog target filename at runtime

In my application, I work on several thousand of document a day. I'd like, in some cases some logs, one …

c# logging nlog
How to make Nlog archive a file with the date when the logging took place

We are using Nlog as our logging framework and I cannot find a way to archive files the way I …

c# nlog
Which is the best viewer for NLog?

Which is the best viewer for NLog? log2console sentinel Other ?

logging nlog viewer
Delete log files after x days

I would like to log with Nlog using the file target like in this example. How can I realize a …

logging archive nlog