Best way to dynamically set an appender file path

后端 未结 4 1149
终归单人心
终归单人心 2020-11-28 06:33

I am trying to find somebody smarter than me to validate some syntax I wrote up. The idea is to configure the filename of my RollingFileAppender to the name of the assembly

4条回答
  •  一整个雨季
    2020-11-28 07:14

    In 2015, we do it like this:

    
      
    
    

    No other code required.

    App domain is the executing assembly's file name.

提交回复
热议问题