Whenever my application runs on the Test, Preprod or Prod server (Windows 2012 R2) on the infrastructure of our hosting provider, all file targets write exactly one log entry, and then stop working ...

I'm attempting to use the NLog Replace Layout Renderer (https://github.com/NLog/NLog/wiki/Replace-Layout-Renderer). I hope to use it to truncate over-long messages. It seems to be able to do so, but ...

So my problem is as follows: The method/function I'm scheduling to/with Hangfire performs a lot of logging of relevant information using NLog. When running the method without hangfire I'm getting all ...

I have two completely different solutions which are using very similar NLog configuration for sending emails through two different SMTP servers and both behave the same way: they sometimes send emails ...

I have created a webservice with an app.config which is holding my connection string. Everything works perfectly and as expected, apart from that when I change the connectionstring to point to a new ...

Is there a way to ensure the integrity and authenticity of log messages written using NLog? Because, once the log file is released for investigation, there should be a way to confirm that the file is ...

I would like NLog to create just one line in the log file for the following code:
stopwatch = Stopwatch.StartNew()
log.Trace("Operation starting.")
StartOperation();
log.Trace("Finished. Elapsed time ...

I have a client server architecture. i want to push my log to predefined folder on server when ever there is a critical error occurred. i am currently using nLog for logging. is there a way to do same ...

Each time the NLog file is modified (during the development time) with different target parameters such as layout, changes are not immediately reflected in the output. To see the affected result, I ...

Here is my code:
it works but all logs display when process is done. I hope it can works well like console target. how should I change the config to make it real-time display on RichTextBox? thanks ...

I have an ASP.NET Webforms project that I've been recently converting to use Dependency Injection via Autofac. It has all been going well, that is until I tried to inject my NLog instances. I can't ...

Background - Unlike azure websites, logging to azure table storage doesn't currently work out the box with Azure mobile services as far as i can tell. Well at least the UI is not exposed to turn it ...

Since our Security Officer told us to use IIS Express instead of IIS, we made some modifications to make it work (we have ASP running with subsites ASP.NET and ASP.NET MVC). Still an issue persists ...

I have an NLog target I've written that is intended to take the NLog LogEventInfo and write it to Azure's API services. I'm having trouble writing a unit test for the logger because I can't figure out ...

In my NLog Mail target configuration, the values for the to and cc parameters are being set dynamically, and sometimes, the value for cc will be empty. This results in no mail being sent, even though ...