Search code examples
c#event-lognlog

NLog not writing to the EventLog


I'm using NLog to record my logging, everything is working fine, but now I have installed the application on to a WebService in IIS 6, it is not logging to the EventLog, all other logs are working okay.

What do I need to configure to get this working on the Server?


Solution

  • Do you have permissions to access the event log? You can try enabling logging for NLog itself to see where it's failing. Have a look at Logging is not working - how to troubleshoot it? for details.