It's all my fault (well nearly)
I was using the log4net assembly that shipped with NAnt RC3. According to
the release notes, this was upgraded to log4net 1.2.9, but it looks like
there was a problem with the release and it shipped with the old version.
This has now been fixed in the nightly build
Thanks for that Nicko.
I have upgraded to 1.2.9, bit I still don't get the machine name. The
property is definitely doing something, as I do get the value "(null)"
written to the column (NOTE: this is an actual string value, presumably from
the property parser or whatever, not SQL Server displa
This doesn't appear to work unfortunately. In my .config file I have:
(for some reason "%property{log4net:HostName}" was giving me
WARNroperty{log4net:HostName} in
I may be being dumb here, but I can't see any way of getting hold of the
machine name that an event is being logged from.
I have multiple machines in a cluster using an ADOAppender to write to a
common database, and I want to write a column with the machine name in it.
Is there a simple way to get
Sunil,
Just include this line in your AssemblyInfo.vb file:
or for C#:
[assembly: log4net.Config.DOMConfigurator(Watch=true)]
HTH,
Bill
-Original Message-
From: Sunil Bhujle [mailto:[EMAIL PROTECTED]
Sent: 13 January 2005 21:57
To: log4net-user@logging.apache.org
Subject:
My personal view on this is that you should only catch an exception where
you can do something about it. If you are catching an exception in your
data layer simply to log it and then re-throw it, then you are just slowing
down your application. Try ... catch is a pretty expensive operation. It
i
I need to be able to ignore specific exceptions in log4net from within the
config file (specifically, the ThreadAbortException). I can't see any way
of doing this with the existing functionality, so was going to write a
custom filter to do it. It would appear, however, that I can't get the
Except