log4net: How to set logger file name dynamically?

前端 未结 2 684
隐瞒了意图╮
隐瞒了意图╮ 2021-02-18 23:11

This is a really common question, but I have not been able to get an answer to work. Here is my configuration file:

<         


        
2条回答
  •  甜味超标
    2021-02-19 00:05

    What about to use "%property" to define a dynamic 'tag' to the file name (at runtime) ?

    
    

    Explained here: Best way to dynamically set an appender file path

提交回复
热议问题