Intermittent log4net RollingFileAppender locked file issue

后端 未结 3 1927
天命终不由人
天命终不由人 2020-12-02 05:37

We are seeing an intermittent issue on development and production machines whereby our log files are not getting logged to.

When running in development and debugging

3条回答
  •  清歌不尽
    2020-12-02 05:58

    If you have

    
    
    
    

    and add

    
    

    then there will be an error while the rolling happens. The first process will create the new file and the rename the current file. Then next proces will do the same and take the newly created file and overwrite the newly renamed file. Resulting in the logfiel for the last day being empty.

提交回复
热议问题