logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Piyush Arya <arya.piy...@gmail.com>
Subject Specifying a specific folder for log files.
Date Mon, 28 Nov 2005 11:26:40 GMT
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

Mime
View raw message