The only thing that is different is that the context of the library is the 
VS2005 executable and not something you have written yourself. It's been a 
while since I've worked with add-ins, but I imagine that there is a some sort 
of start up method that is called when the add-in is loaded.  What you'd need 
to here is have the method configure your logging, either programmitically or 
by using the XmlConfigurator.  The trickiest part will be determining the file 
locations for the configuration and/or output, but either the .NET AppDomain or 
Environment classes will let you know where the application is working and you 
can work from there.

HTH,

Dean Fiala

Chief Technology Officer
Celadon Laboratories, Inc.
http://www.celadonlabs.com




-----Original Message-----
From: king kele [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 12:00 AM
To: [email protected]
Subject: utilize logging functionality in my add-in

I've used log4net in several project.It's good.
But now, the problem is I want to use log4net for logging in my vs2005 add-in, 
it's a class library assembly.
Previously, I use log4net in terms of standlone application such as windows 
application, asp.net application etc. Now it's an class library.
Anyone can tell me how to use log4net in my add-in for logging?
Thanks in advance.

_________________________________________________________________
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  




Reply via email to