Do you want log4net to detect if there is a log4net.config file and if
so, automatically call log4net.Config.XmlConfigurator.Configure using
that file? I don't think log4net supports that. If you've already gone
through the trouble of adding a log4net reference to your project and
added logging sta
p sequence before
> other assemblies are loaded?
>
> Nicko
>
> > -Original Message-
> > From: John Deviney [mailto:[EMAIL PROTECTED]
> > Sent: 24 June 2005 17:32
> > To: 'Log4NET User'
> > Subject: RE: Log File Not Created with Pure XML
> Co
: John Deviney [mailto:[EMAIL PROTECTED]
> Sent: 24 June 2005 17:32
> To: 'Log4NET User'
> Subject: RE: Log File Not Created with Pure XML Configuration
>
> I tried pure xml config with and without an assembly
> attribute in AssemblyInfo.cs file.
>
> John Deviney
: Friday, June 24, 2005 11:23 AM
To: Log4NET User
Subject: RE: Log File Not Created with Pure XML Configuration
John,
You had that didn't you?
-Scott
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Friday, June 24, 2005 10:16 AM
To: Log4NET User
Subject: RE
John,
You had that didn't you?
-Scott
-Original Message-
From: Nicko Cadell [mailto:[EMAIL PROTECTED]
Sent: Friday, June 24, 2005 10:16 AM
To: Log4NET User
Subject: RE: Log File Not Created with Pure XML Configuration
Scott,
For configuring log4net you have 2 options. The fir
0:16 AM
To: Log4NET User
Subject: RE: Log File Not Created with Pure XML Configuration
Scott,
For configuring log4net you have 2 options. The first is programmatic
configuration, i.e. calling XmlConfigurator.Configure(new
System.IO.FileInfo(...)). The other alternative is to add an assembly
level attribu
> -Original Message-
> From: Scott Wojan [mailto:[EMAIL PROTECTED]
> Sent: 23 June 2005 21:41
> To: Log4NET User
> Subject: RE: Log File Not Created with Pure XML Configuration
>
> Then it can't be a security issue...
> Local admin can do whatever it wa
ed the "C# windows exe" was it running on your local PC?
> Were you trying to write it to a folder on your local PC?
>
> Scott
>
>
> -Original Message-
> From: John Deviney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 23, 2005 3:15 PM
> To: Log4
ot;C# windows exe" was it running
> on your local PC?
> Were you trying to write it to a folder on your
> local PC?
>
> Scott
>
>
> -Original Message-
> From: John Deviney [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 23, 2005 3:15 PM
> To: Log4N
sted the "C# windows exe" was it running on your local PC?
Were you trying to write it to a folder on your local PC?
Scott
-Original Message-
From: John Deviney [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 23, 2005 3:15 PM
To: Log4NET User
Subject: RE: Log File Not Creat
gt; From: John Deviney [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 22, 2005 12:35 PM
> To: 'Log4NET User'
> Subject: RE: Log File Not Created with Pure XML
> Configuration
>
> Yes, that was the only change. I did leave out some
> additional
> configuration unre
2, 2005 12:35 PM
To: 'Log4NET User'
Subject: RE: Log File Not Created with Pure XML Configuration
Yes, that was the only change. I did leave out some additional
configuration unrelated to log4net for brevity. Here is the complete
App.config just in case something else in the file might
: Scott Wojan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 12:21 PM
To: Log4NET User
Subject: RE: Log File Not Created with Pure XML Configuration
I just wanted to make sure your app could see the config file.
So the only changes are:
Right?
Nicko, do you have any thoughts on this
ubject: RE: Log File Not Created with Pure XML Configuration
Scott,
Yes, debugFlag = "true".
John Deviney
Texas Windstorm Insurance Association
5700 S. MoPac Exp., Building E, Suite 530 Austin, TX 78749
[EMAIL PROTECTED]
-Original Message-
From: Scott Wojan [mailto:[EMAIL PROTEC
g4NET User
Subject: RE: Log File Not Created with Pure XML Configuration
John,
Can you test the following:
Put:
string debugFlag =
System.Configuration.ConfigurationSettings.AppSettings["log4net.Internal
.Debug"];
As the first item in the Main method of your winform.
Is that getting the v
-
From: John Deviney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 10:26 AM
To: '[email protected]'
Subject: Log File Not Created with Pure XML Configuration
I have a configuration using FileAppender. The log file is created only
if I configure through cod
I have a configuration using FileAppender. The log file is created only if
I configure through code like the following:
log4net.Config.XmlConfigurator.Configure(new
System.IO.FileInfo("tos.net-ri.exe.config")); I should be able to do this
without code through the default application xml config fi
17 matches
Mail list logo