I'm trying to work with WebApi + OWIN + SimpleInjector, but somehow, after each request, the whole thing seems to be restarting. For each request, the breakpoing in Global.Asasx is getting hit, and ...

I'm trying to configure NLog programatically at the start in my ASP.NET app. I was having it working with the NLog config file, but changes on the storage of my connectionstrings makes better doing it ...

I want to configure a rolling appender type in Nlog, where if size is greater than the limit, or after certain days, The old log files have to be deleted. I know that there is configuration in Nlog to ...

I need to log to a remote end point and certainly one of the built in network targets will do. I can expect the device to occasionally lose network connectivity (sometimes for hours, or even days). In ...

I need to write event log for every instance of class to separate file. Historically project uses NLog for logging, so I want to try resolving this issue using NLog (I've found similar topic Unique ...

I have an ASP.NET application configured to log to NLog via Common.Logging.
For some reason, it always creates the log files in the root of the website's folder, never in c:\logs to where I point it.
...

I am working on a service that can have multiple instances. I was able to make it write to different log file names using the following code.
However, when I try to change the directory as well, it ...

I am using NLog for logging in my asp.net 4.5 website. I have used NLog 4.0. Now I need to use session variables in my logs. So i tries to use AspNetSession layout renderer. This layout renderer is ...

Currently using Castle Windsor IoC container and NLog as my logging facility.
Everything is wired up and working except the Count field continues to increment across separate web requests. The install ...

First, I'm sure it's not an NLog or Ninject bug but of my own doing. I'm trying to use ninject to add NLog to my project. It appears to be injected correctly but none of the NLog targets are created ...