I have tried changing it (see my config file below) but it stills prints to 
c:\log-file.txt.


<appender name="MyFirstFileAppender"
type="log4net.Appender.FileAppender">
<file value="c:\testfile.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%5p %d (%c:%L) - %m%n" />
</layout>
</appender>



-----Original Message-----
From: Ron Grabowski [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 10:22 AM
To: Log4NET User
Subject: Re: still looking for info on how to specify a
location/filename


I searched all the source files in the log4net Visual Studio solution
and couldn't find any mention of "log-file.txt". You can name your log
files whatever you want:

 <file value="helloWorld.txt" />

Could you re-post your <appender> tag that contains the <file> node?

- Ron

--- "Rutledge, J. Mike" <[EMAIL PROTECTED]> wrote:


---------------------------------
still looking for info on how to specify a location/filename
Posted earlier but got no replies. Is it possible to have a log file
named something other than log-file.txt?

I've tried changing it in the config file but it just seems to ignore
what I put in there.

Thanks,
Rut

-----------------------------------------
CONFIDENTIALITY NOTE:  This e-mail message, including any  attachment(s),
contains information that may be confidential,  protected by the attorney-
client or other legal privileges, and/or  proprietary non-public
information.  If you are not an intended  recipient of this message or an
authorized assistant to an intended  recipient, please notify the sender by
replying to this message and  then delete it from your system.  Use,
dissemination, distribution,  or reproduction of this message and/or any of
its attachments (if  any) by unintended recipients is not authorized and
may be unlawful.

Reply via email to