> -----Original Message-----
> From: hf cheng [mailto:[EMAIL PROTECTED] 
> Sent: 04 August 2004 17:27
> To: Log4NET User
> Subject: using log4net in an addin application for vs2003
> 
> I am trying to use log4net in an addin application for 
> vs2003. Where should I put the configurations for log4net?

You can put the config file wherever you want, it depends on how you
want to configure log4net.

If you use call the DOMConfigurator.Configure() method programmatically
you can specify any path to the configuration file.

If you use the DOMConfiguratorAttribute without any parameters then the
config file is loaded from
System.AppDomain.CurrentDomain.SetupInformation.ConfigurationFile. If
you specify the ConfigFile or ConfigFileExtension parameters then the
config file is looked up relative to the
System.AppDomain.CurrentDomain.BaseDirectory. To find out where these
locations are exactly for your add-in I suggest that you modify your
add-in to print them out.

Nicko

> 
> Thanks.
> 

Reply via email to