Red Gate forums :: View topic - log4net & SmartAssembly
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 5
SmartAssembly 5 forum

log4net & SmartAssembly

Search in SmartAssembly 5 forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
jerra



Joined: 23 Oct 2010
Posts: 1

PostPosted: Sat Oct 23, 2010 8:48 am    Post subject: log4net & SmartAssembly Reply with quote

Hi,
we have just started using SmartAssembly (5). Many questions have arisen.

One problem we haven't been able to solve concerns log4net. I don't know if this is the right forum, if not please point me in the right direction.

We have a console application (server software) using log4net and we have tried to have the log4net.dll merged or embedded together with the main assembly but it doesn't work. Having the log4net.dll completely outside makes the setup quite vulnerable as there are open configurations such as SQL statements for logging etc.
Ideal would be to have the log4net.dll & configurations files embedded and configurations encrypted. Is this possible?

log4net.dll
log4net.config <- our configuration Logging level, logging type etc
log4net.xml <- log4net's own XML configurations

Thanks!
Back to top
View user's profile Send private message
nick.maidment



Joined: 29 Jan 2010
Posts: 74

PostPosted: Mon Oct 25, 2010 11:35 am    Post subject: Reply with quote

I've just sent you an email, Please let me know if you get it. What kind of errors are you seeing when you're trying to embed or merge? does it build at all or does it fail during the build process?
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 591

PostPosted: Fri Oct 29, 2010 10:55 am    Post subject: Reply with quote

Hi, I hope you don't mind but I'm posting the solution that you found (good job, by the way Smile


move the whole configuration for log4net into the program code
Back to top
View user's profile Send private message
Uniwares_AS



Joined: 11 Oct 2007
Posts: 132

PostPosted: Wed Nov 17, 2010 4:10 pm    Post subject: Reply with quote

On a side note, unrelated to the problem - while it is tempting to embedd or merge log4net into your assembly, by its license you are not allowed to do so. This is a general problem of using OSS assemblies in your protected products. We are required to deliver those assemblies, modified or original, as standalone assemblies by most of the licenses for OSS.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group