log4net one file per run

后端 未结 3 1914
刺人心
刺人心 2020-12-01 06:07

I need my application to create a log file each time it runs.

My preferred format would be App.log.yyyy-MM-dd_HH-mm-ss. If that\'s not possible, I\'

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 06:49

    It's documented from apache in the log4net docs at:

    https://logging.apache.org/log4net/release/config-examples.html

    ctrl+f for "per program execution"

    
        
        
        
        
        
        
            
        
    
    

提交回复
热议问题