Is Shutdown the same
as Dispose?
If it is what about
making another method called Dispose available for those people that are more
.Net centric. If someone really wants to they could even implement IDisposable
and remove the Shutdown method. But alas me thinks that might break someones
co
Hi,
A couple of things to double check:-
1) You have a hard-coded file reference : "..\\..\\log4net.xml"
Are you certain that this corresponds to where your .xml file actually is ?
2) Are you sure that "C:\logFile.txt" is writable by your app ?
Cheers,
Graham Innocent
Chase Rogers wrote:
All I a
I had that same thought. There are a couple of problems I saw with that,
though. The LoggingEvent object is passed in by value, through several
intermediary objects. Each of those would have to be changed, which
would affect five or six objects just to change them to use reference
parameters.
Also
How would I use the ErrorHandler property for an appender? For example,
let's assume I'm using the ADONetAppender and for some reason it fails
(i.e. unable to connect to the database server). I would like to not
loose the message. I was thinking that I could use the ErrorHandler
property to defi
Is Shutdown the same
as Dispose?
If it is what about
making another method called Dispose available for those people that are more
.Net centric. If someone really wants to they could even implement IDisposable
and remove the Shutdown method. But alas me thinks that might break someones
co
Title: Message
All I am trying to
do is make a fileAppender.
I just want to know
how to use the log4net tool, but the documentation does'nt help
me.
The problem is
simple: the file I specify to be 'written' to does not get anything. I
tied the log.Info method to a button click, but whe
Which version of log4net are you using? If this is a new project you
should start with version 1.2 beta 8.
In the you have specified
but there is no appender with that name. There is a did you mean to specify instead?
You have 2 FileAppenders appending to the same file. This will not work
as
You should just need to change the text “category”
to “logger”. Then in your app call GetLogger(“XMLTest.WebForm1”).
-Original Message-
From: Abhijit Salvi
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 17, 2004
1:34 PM
To: Log4NET User
Subject: RE: Log4net Configuration
Sett
Tried that … did not work.
Did I needed to change the “Category”
element name to “logger” or “log4net” or the name of
the namespace / class.
From: Hart, Aaron
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 17, 2004
12:20 PM
To: Log4NET User
Subject: RE: Log4net Configurat
Below your root logger configuration,I
believe you need to change the “Category” element name to “logger”.
Aaron
-Original Message-
From: Abhijit Salvi [mailto:[EMAIL PROTECTED]
Sent: Friday, December 17, 2004
11:58 AM
To:
log4net-user@logging.apache.org
Subject: Log4net Co
Hi,
I have recently
started using the Log4net Tool. I read the documentation and it has great
potential for logging errors, debugging purposes and tracing.
However I have
not been able to probably configure correctly w.r.t. to my project.
Here are my
sett
Aaron,
The standard implementation of the ADONetAppender does not support
retrieving results from the database query. You will need to create your
own implementation that also retrieves a result from the database. The
LoggingEvent has a Properties map that can be used to store additional
data. You
12 matches
Mail list logo