Redirect log4net log in the User Directory

前端 未结 3 1043
轻奢々
轻奢々 2021-02-07 07:55

I have a program that uses log4net. It logs directly in the exe folder.

Now, when passing to station with Windows > XP (Vista, Seven) I observed that the logs are not a

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-07 08:26

    Yes you can change the default log-file location. In the config change the file value setting. The following puts the file in the root of C:

    
    
    

    You can even use an Environment Variable, the following uses one called TMP:

    
        
        
    

提交回复
热议问题