Performance of buffered vs. non-buffered logging

2004-10-20 Thread Simon Wallis
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

RE: TextBoxAppender

2004-10-20 Thread Neils . Christoffersen
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:

RE: TextBoxAppender

2004-10-20 Thread John Cole
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

RE: TextBoxAppender

2004-10-20 Thread Neils . Christoffersen
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

RE: Problems upgrading to version 1.2 from 1.1

2004-10-20 Thread Andrew Elmhorst
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

RE: TextBoxAppender

2004-10-20 Thread John Cole
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

RE: TextBoxAppender

2004-10-20 Thread Neils . Christoffersen
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--

RE: How can I log to database through firewall?

2004-10-20 Thread Nicko Cadell
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

RE: TextBoxAppender

2004-10-20 Thread Nicko Cadell
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

RE: Problems upgrading to version 1.2 from 1.1

2004-10-20 Thread Nicko Cadell
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) { (