You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by Piyush Arya <ar...@gmail.com> on 2005/11/28 12:26:40 UTC
Specifying a specific folder for log files.
I have been using the following configuration successfully for some time now.
<appender name="ErrorRollingFileAppender"
type="log4net.Appender.RollingFileAppender">
<param name="File" value="Error.log" />
<param name="AppendToFile" value="true" />
<param name="MaxSizeRollBackups" value="10" />
<param name="MaximumFileSize" value="500000" />
<param name="RollingStyle" value="Size" />
<param name="StaticLogFileName" value="true" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%n %d %-5p - %m%n" />
</layout>
</appender>
However, if i need to specify the log files to be placed in a separate
folder, lets say, Log, I tried doing:
<param name="File" value="../Log/Error.log" />
This stillplaced the error.log file in the bin folder.
How do i get the file to be placed in a separate folder?
Thanks and Regards,
Piyush Arya