logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: common log4net.config for multiple web apps
Date Mon, 20 Jun 2005 18:32:32 GMT
Yes each web app is independent and each will watch the config file if
instructed to do so. log4net will reload the config when the OS
filesystem notifies it that the watched config file has been modified.

Nicko

> -----Original Message-----
> From: hbmlists@softhome.net [mailto:hbmlists@softhome.net] 
> Sent: 17 June 2005 05:12
> To: Log4NET User
> Subject: Re: common log4net.config for multiple web apps
> 
> Thanks. One more query. Each web app has its own Application 
> pool (IIS 6.0, Windows 2003) and will have a private 
> reference to log4net assembly but common log4net.config. So 
> if there is change in log4net.config will the change be 
> reflected for all web apps (assuming each webapp is using 
> ConfigureAndWatch in Application_Start) 
> 
> Thanks,
> Hemant 
> 
> Nicko Cadell writes: 
> 
> > If you have a single configuration for several processes 
> you may have 
> > to consider locking issues, especially with files. If you want 
> > multiple processes to write to the same log file then you 
> need to use 
> > the FileAppender's MinimalLock locking model.
> > 
> > Other than that there should be no problems using the same logging 
> > config.
> > 
> > Nicko
> > 
> >> -----Original Message-----
> >> From: hbmlists@softhome.net [mailto:hbmlists@softhome.net]
> >> Sent: 16 June 2005 05:32
> >> To: log4net-user@logging.apache.org
> >> Subject: common log4net.config for multiple web apps
> >> 
> >> Hi,
> >> 
> >> Can I have a common log4net.config file shared across multiple web 
> >> apps. Are there any pitfalls?
> >> 
> >> Thanks in advance,
> >> Hemant
> >> 
>  
> 

Mime
View raw message