views:

36

answers:

2

here is an easy question coming:

i 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

+2  A: 

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

Orentet
i found it where you'd mentioned. thanks for help.
cemregoksu
+2  A: 

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.

Falle1234