开发者

Logging via FileAppender

开发者 https://www.devze.com 2023-01-09 15:50 出处:网络
here is an easy question coming: i开发者_StackOverflow中文版 am trying to use log4net to log the infos on a file.i wrote

here is an easy question coming:

i开发者_StackOverflow中文版 am trying to use log4net to log the infos on a file. i wrote < file value="log-file.txt" /> into my appender tag in app.config. and now wondering where the log-file.txt is positioned and whether it is created automatically or i should create it by myself.

i am using c# - wpf


It should be in the Debug\Bin or Release\Bin folder. if its not there, try specifying full path.


The file will automatically be created if it doesn't exist.
It may require that the application has write permission to the folder where the logfile is placed.
As Orentet mentions this is normally the bin folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消