NLog not working in release mode

前端 未结 6 1364
孤城傲影
孤城傲影 2021-02-19 09:35

I am using NLog to log the exceptions in my asp.net mvc (C#) application.

NLog is not working in release mode. The same is working when running in debug mode.

Wh

6条回答
  •  自闭症患者
    2021-02-19 10:12

    For anyone, who is not sure about 'why nlog is not working in prod environment':

    1. Go to Nlog.config file
    2. SET throwExceptions="true" in nlog tag and start debugging with proper errors.

    Good luck.

提交回复
热议问题