You don't need to escape them.  Here is my appender declaration...

   <appender name="RollingFile" type="log4net.Appender.RollingFileAppender
">
       <file value="C:\Projects\Company_Name\Project_Name\log\web.log" />
       <appendToFile value="true" />
       <maximumFileSize value="100MB" />
       <maxSizeRollBackups value="-1" />
       <layout type="log4net.Layout.PatternLayout">
           <conversionPattern value="%5level [%date] [%thread] %-
30.30logger{2}    %message%newline" />
       </layout>
   </appender>

On 6/22/07, Samuel Rochas <[EMAIL PROTECTED]> wrote:

Dear Michael,

I run the web server which comes with studio. I am not sure how / where
to configure it. I open the IIS tool, and in the "Default web site"
properties, I setup the directory rights to write. But no change is to
see.

Do you need to escape the '\' characters like you do in Java for the
absolute file path like "C:\\path1\\path2\\file.txt"?

Thank you
Samuel

Michael Schall escribió:
> The user the application is running as has to have rights to write to
> / create files in the folder where you are logging.  Keep in mind that
> if you are debugging, that might be a different relative path than if
> you are running the program directly.  I use an absolute path for my
> rolling file appenders and they work great.
>
> Mike



Reply via email to