logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Babu A <babu_p...@yahoo.com>
Subject Re: Where do I place my Log4net.config file in an IIS-based Remoting Application?
Date Fri, 15 Jul 2005 04:37:37 GMT
last week, me too struck up with the same problem and
finally i got the solution.

You have to initiate the configuration file in a
different way. You dont do that in assemblyinfo.cs.
Instead do the following in component constructor. 

FileInfo fi = new FileInfo(<config file path> );
DComConfigurator.Configure(fi);

This will configure your file and then everything will
work normal.

Have a nice day.

Regards 
Babu


	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

Mime
View raw message