NLog not working in release mode

前端 未结 6 1153
孤城傲影
孤城傲影 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:11

    Make sure your target file saves within a "/logs/" folder. See below

    
    

    I tried to log into "root/log.log" and was not working, then tried "root/logs/log.log" and worked

    Below full config file.

    
    
    
    
      
      
    
      
      
    
        
    
        
        
    
      
    
      
        
    
        
        
    
      
    
    

提交回复
热议问题