I've been running some performance tests today on using the log4net
ADONetAppender. I have a simple ASP.NET page that does one log request, and I'm
using ACT to hit this page with 50, 100, 150, 200, 300 and 400 users with a
5-10 second random delay between each request.
I did one set of tests w
I have the following line in AssemblyInfo.cs, so log4net has the details of
my config file:
[assembly:
log4net.Config.DOMConfigurator(ConfigFile="log4net.config",Watch=true)]
The "log4net.config" file should be located in the same directory as your
application and look something like this:
Neils,
Could you post your DomConfigurator lines as well? I'm having a little
trouble getting everything to hook up right.
Thanks,
John Cole
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 20, 2004 3:10 PM
To: log4net-user@logging.apache.o
I've pasted my TextBoxAppender and the applicable section of my log4net
config file below (namespaces changed to protect the innocent). I use the
DOMConfigurator.Configure() to parse the config file when starting the
application and then call TextBoxAppender.SetTextBox(), passing it a
reference to
Thanks for the insight! I think that helps a lot. I do have one further
question . . .
What is the difference between setting the Hierarchy.Threshold and setting
Hierarchy.Root.Level? It appears to me that they both filter the log
messages at a global level. Does one take precendence over the othe
Neils,
I'd be interested in seeing an example app using this textbox rendere. A
few months ago, Nicko helped me with a event appender, which works, but it
sounds like yours might be simpler to use in some cases.
Thanks,
John Cole
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMA
I chose the second option (as I am already using DOMConfigurator) and it
worked beautifully. I added your SetTextBox() and GetAppenders() methods to
my TextBoxAppender, so all the code has to do is call
TextBoxAppender.SetTextBox(myTextBox).
Thanks very much for your time.
-Original Message--
Simon,
It is likely that a webservice is going to integrate best with your
existing environment.
I would suggest writing a new webservice and appender to do this. You
need to decide if you want to pass the individual parts of the
LoggingEvent to the service or if you can just render the event dow
Either your TextBoxAppender would have to lookup the TextBox to write
to, i.e. make the TextBox into a singleton that the appender can lookup
by referencing a static field. Or something else has to tell the
appender about the TextBox to use.
This depends on how you want to configure log4net. If y
The ILog is just an adapter. To change the configuration you need to get
its Logger property (the object that does the real work) and then you
need to cast it to the right type. The following methods should do the
job:
public static void RemoveAppender(log4net.ILog log, string appenderName)
{
(
10 matches
Mail list logo