Thanks Dean. I will try it. I'll post in this list to detail how to get it work if I success.

From: "Dean Fiala" <[EMAIL PROTECTED]>
Reply-To: "Log4NET User" <[email protected]>
To: "'Log4NET User'" <[email protected]>
Subject: RE: utilize logging functionality in my add-in
Date: Tue, 6 Feb 2007 13:10:39 -0500

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/





_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com

Reply via email to