log4net & SmartAssembly

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, Alex.Davies, melvyn.harbour

log4net & SmartAssembly

Postby jerra » Sat Oct 23, 2010 8:48 am

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!
jerra
 
Posts: 1
Joined: Sat Oct 23, 2010 8:39 am

Postby nick.maidment » Mon Oct 25, 2010 11:35 am

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?
nick.maidment
 
Posts: 74
Joined: Fri Jan 29, 2010 1:55 pm

Postby Chris.Allen » Fri Oct 29, 2010 10:55 am

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


move the whole configuration for log4net into the program code
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm

Postby Uniwares_AS » Wed Nov 17, 2010 4:10 pm

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.
Uniwares_AS
 
Posts: 132
Joined: Thu Oct 11, 2007 3:29 pm


Return to SmartAssembly 5

Who is online

Users browsing this forum: No registered users and 0 guests