Title: RE: internal debugging.
Thanks a lot
-Original Message-
From: Ron Grabowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 27, 2005 1:23 PM
To: Log4NET User
Subject: RE: internal debugging.
This page:
http://logging.apache.org/log4net/release/faq.html#internalDebug
Title: RE: internal debugging.
I said I didn't want to use the config file only because log4net interop (in VB) doesn't like config files atall.
-Original Message-
From: Matthew Brown [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 27, 2005 1:40 PM
To: Log4NET User
S
No config files are allowed? That sounds like a nightmare of a project :(
On 10/27/05, Ramaa Davanagere <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> All the setting to enable log4net internal debugging should be done via
> code. No config files are allowed.
>
>
>
&g
This page:
http://logging.apache.org/log4net/release/faq.html#internalDebug
says:
"
Internal debugging messages are written to the console and to the
System.Diagnostics.Trace system
"
Here's some sample code that adds a listener to the Trace system and
redirects mes
All the setting
to enable log4net internal debugging should be done via code. No config files
are allowed.
-Original Message-
From: Ramaa Davanagere
Sent: Thursday, October 27, 2005
12:59 PM
To:
'[email protected]'
Subject: internal debugging.
I
Is this how I enable internal debugging via
code?
log4net.Util.LogLog.InternalDebugging = true;
Also, where are these log messages written to? Is it
written to text file and where is this file located?
If not, how can I set it up to write all the
messages to text file?
Finally
that I
> might better figure out why logging is not working.
>
>
>
> For my app, logging is working great now, but I would like to capture
> the
> internal debugging output just incase something fails in the future.
>
>
>
>
>
> Thanks!
>
>
internal debugging output just incase something fails in the
future.
Thanks!
fig"));
>
>
>
> What should I do next?
>
>
>
>
>
> -Original Message-
> From: Ron Grabowski [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 09, 2005 11:24 AM
> To: Log4NET User
> Subject: RE: Internal debugging
>
>
>
You haven't given any feedback if your program is finding its
App.config file correctly:
Console.WriteLine(
ConfigurationSettings.AppSettings["log4net.Internal.Debug"]);
Console.WriteLine(
ConfigurationSettings.AppSettings["Hello"]);
If you're running a WinForm program that doesn
Anybody having
a similar problem? How did you solve it?
-Original Message-
From: Ramaa Davanagere
Sent: Friday,
September 09, 2005 11:33 AM
To: 'Log4NET User'
Subject: RE: Internal debugging
This is EXACTLY how my config file
From: Ron Grabowski [mailto:[EMAIL PROTECTED]
Sent: Friday, September 09, 2005 11:24 AM
To: Log4NET User
Subject: RE: Internal debugging
Is there anything inside of log4netInternalDebugging.txt?
Does your xml file look like this:
...
Maybe the closing node is causing problems.
Is there anything inside of log4netInternalDebugging.txt?
Does your xml file look like this:
...
Maybe the closing node is causing problems.
App.Config is a special filename in Visual Studio gets renamed to the
name of your executable when the project is compiled. If your proejct
was nam
Title: RE: Internal debugging
One more thing
to add
The file log4netInternalDebugging.txt is not
getting created now. Earlier the file was created with 0 kb in it.
-Original Message-
From: Ramaa Davanagere
Sent: Friday, September 09, 2005
11:11 AM
To: 'Log4NET
Title: RE: Internal debugging
Oh wow! I LOVE the idea of setting up the trace via the config file. This is very neat! I can enable it whenever I want. But why is it so hard to get things working though? I implemented the code changes you mentioned and its still not working.
My new code
I'm
> trying
> to do is, enable the internal debugging and write the message to
> log4netInternalDebugging.txt file. When I run this code, the file is
> getting
> created but no messages are getting logged. Please help
>
>
>
>
>
> public class myError
I don't know if this will help you (I'm pretty new in log4net), but you can try to add this in your app.config :
2005/9/9, Ramaa Davanagere <[EMAIL PROTECTED]
>:
The code attached below is just not working. What is wrong? All I'm
trying to do is, enable the i
The code attached below is just not working. What is wrong? All I'm
trying to do is, enable the internal debugging and write the message to
log4netInternalDebugging.txt file. When I run this code, the file is getting
created but no messages are getting logged. Please help
p
18 matches
Mail list logo