log4net, can 2 applications write to the same log file?

前端 未结 5 1907
闹比i
闹比i 2020-12-05 10:59

Is it possible to have 2 applications write to the same log file using log4net?

5条回答
  •  一整个雨季
    2020-12-05 11:24

    It depends on the FileAppender's LockingModel. If it is ExclusiveLock then another process cannot open the file for writing. The alternative is MinimalLock, but it is not meant for this purpose. It is intended for allowing another process to move or delete the file.

提交回复
热议问题