>Can I create the files with Data Time stamp
If you mean date stamp, then yes: this results in log files such as
"C:\logfiles\MyServer-20060713.log".
<?xml version="1.0" encoding="utf-8" ?>
<log4net debug="false">
<appender name="RollingLogFileAppender"
type="log4net.Appender.RollingFileAppender">
<file value="C:\logfiles\MyServer-" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<staticLogFileName value="false" />
<datePattern value="yyyyMMdd\.\l\o\g" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%thread] %-5level
%logger - %message%newline" />
</layout>
</appender>
<root>
<level value="WARN" />
<appender-ref ref="RollingLogFileAppender" />
</root>
</log4net>
________________________________________
From: Ganapatiraju, Shiva (OCFS) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 13, 2006 1:38 PM
To: Log4NET User
Subject: Rolling File Appender
Hi,
I am using a rolling file appender. Can I create the files with Data Time stamp
instead of creating file as log1, log2 or Log3.
Thanks
Shiva
________________________________________
This communication, together with any attachments hereto or links contained
herein, is for the sole use of the intended recipient(s) and may contain
information that is confidential, privileged, or legally protected, and as such
is not a public document. If you are not the intended recipient, you are
hereby notified that any review, disclosure, copying, dissemination,
distribution or use of this communication is STRICTLY PROHIBITED. If you have
received this communication in error, please notify the sender immediately by
return e-mail message and delete the original and all copies of the
communication, along with any attachments hereto or links herein, from your
system.