Appdomain with log4net

2006-02-17 Thread david crunchybear
Hi,After not being able to solve this myself, I'm looking for some sort of best practise solution to a problem that I'm facing: My app (console app) has 2 appdomains, both of which need to log. In an ideal world, they would both log to the same place (in this instance a RollingFileAppender) and if

Re: Appdomain with log4net

2006-02-17 Thread Aaron Morton
David, I dont think its possible to share loggers or appenders across AppDomains, log4net stores them in static structures. It they were shared they would have to be marshal by ref objects, and then one of the domains would log a lot slower than the other (as it would have to cross the domain

Re: Appdomain with log4net

2006-02-17 Thread david crunchybear
Aaron,Thanks very much. You were right, simply modifying the lockingModel attribute was enough! Both my domains are now logging to the same file, which is exactly what I wanted! -David On 2/17/06, Aaron Morton <[EMAIL PROTECTED]> wrote: David,I dont think its possible to share loggers or appenders

How to have an overall ERROR level, except for one specific logger (log4net 1.2.8) ?

2006-02-17 Thread Thibaut Barrère
Hi I feel kind of stupid - I don't manage to filter things like I need: I want to have all loggers triggered above ERROR, except for one logger which I'd like to trigger on INFO (I'm infortunately using version 1.2.8). is it possible ? cheers Thibaut

Re: How to have an overall ERROR level, except for one specific logger (log4net 1.2.8) ?

2006-02-17 Thread Shireesh Thanneru
set additivity = false for the one logger which you want to keep it at INFO.   ShireeshThibaut Barrère <[EMAIL PROTECTED]> wrote: HiI feel kind of stupid - I don't manage to filter things like I need: I want to have all loggers triggered above ERROR, except for one logger which I'd like to trigg

Re: ADO.NET appender parameters

2006-02-17 Thread Ron Grabowski
What exactly do you want to send? This is the example from the website: Here's an example of how to send data using a property: log4net.GlobalContext.Properties["Today"] = DateTime.Today; log.Debug("this is my message"); --- "Coates, Anthony" <[EMA