Server NLog log cannot be written normally or only partially

Time:2020-11-20

Recently, when NLog was deployed on the server to write logs, the local test was ok, and it can be written to any way. However, after being published to the server, it can only be written occasionally, or there may be some unexplained missing log writing. Although the request to write log is clearly executed.

 

Problem: later, it was suspected that it might be the permission problem of the log file. It may be that the user identity at the time of writing the program does not have the permission to create and update the file.

 

  Solution: add a full control permission for everyoney user to the log file directory. Including: read, write permissions, etc. Refer to the following figure for details:

 

 

Recommended Today

CorelDRAW tutorial: how to use pen tool — win10 Professional Edition

How to use CorelDRAW pen tool? CorelDRAW is a graphics and image software. Its extraordinary design ability is widely used in trademark design, logo making, model drawing, illustration drawing, typesetting and color separation output and many other fields. Its pen tool mainly draws lines one by one (curve or straight line) by accurately placing nodes […]