Top "Nlog" questions

NLog is a free logging platform for .NET

NLog: How to exclude specific loggers from a specific rule?

In my NLog configuration, I have a catch-all logger but a specific logger I have created is very spammy and …

nlog
Having NLog loggers with different configuration

In NLog is possible to create multiple loggers with different configuration? I have a component that every time that is …

c# logging configuration nlog
Add, enable and disable NLog loggers programmatically

How can I add, edit, delete, enable, and disable loggers from code for NLog?

c# nlog
Config Transformation on NLog does not work

I have a web project (ASP.NET MVC 4 project) that has a number of configurations stored in Web.Config and …

asp.net-mvc xslt deployment web-config nlog
What is the difference between log4net.ThreadContext and log4net.LogicalThreadContext?

UPDATED on 11/18/2014 - While browsing the log4net source repository, I found that the implementation of LogicalThreadContext was modified in …

.net logging log4net nlog thread-local-storage
Dependency Injection wth NLog

I've got a .NET Core web app that I'm trying to add logging to via NLog. In previous projects, I've …

logging dependency-injection asp.net-core nlog
How to force nlog to throw an exception when the logging to database fails?

When I take down the database that backs nlog, nothing gets get logged and it seems NLog swallows the problem. …

nlog
NLog - delete logs older than X days

How I can delete files with logs older than X days. It's simple, but I have in one folder logs …

c# asp.net-mvc nlog
Wire and inject NLog into .NET Core console app

I created a consumer/job that I will have running as a process on Linux written in C#. The process …

c# .net-core nlog
Cannot load Exchange powershell snap-in: The type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception

I have the following code that creates a PowerShell runspace with the Exchange 2010 snap in loaded. Dim runspaceConfig = RunspaceConfiguration.Create() …

.net powershell exchange-server nlog exchange-server-2010