I am a newbie in .Net C# and log4Net.
I have my log4net running OK with my .NET app and this is the configuration
file.
I need to display to end-user what the directory is for my log file and i
want to allow user to provide a new directory name to update the log file.
how i can do that?
please help and thanks
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<log4net>
<appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="c:\\app.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="1024KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level %logger -
%message%newline" />
</layout>
</appender>
<root>
<level value="ALL" />
<appender-ref ref="LogFileAppender" />
</root>
</log4net>
---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.