How to specify common application data folder for log4net?

后端 未结 6 1879
一生所求
一生所求 2020-12-01 10:13

I want log4net to write log files (using RollingFileAppender) to a subfolder of the common application data folder (e.g. C:\\Documents and Settings\\All Users\\Application D

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 10:53

    We just use this:

    
    

    It works great.


    This line can simply be inserted into your current appender configuration:

    
       
    
    

提交回复
热议问题