Monday, May 21, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: Re: Log4net.dll reference copy-local=true not behaving as expected
Prev Next
You are not authorized to post a reply.

Author Messages
boombox boy

11/26/2008 12:22 PM  

Hi I have a custom log wrapper that utilizes log4net. I build a release assembly of MyLogWrapper.dll with log4net.dll reference set to copy-local true. Referencing MyLogWrapper.dll from MyProject with copy local set to true should result in log4net.dll being copied as well, right? I am not using any Log4net classes in MyProject as they are all wrapped in MyLogWrapper and therefore I do not reference Log4Net from MyProject. Dispite Log4net being a dependency of MyLogWrapper it is not being copied to MyProject output directory but all other dependencies of MyLogWrapper are. What could be the problem?


TIA


Radovan Raszka

11/26/2008 2:18 PM  
Hello.
In my opinion if you reference only MylogWrapper.dll from your project, only this DLL will be copied to the output directory.
If you need to copy log4net.dll automatically to the output, you must reference MylogWrapper project from your project or create post-build event which copies log4net.dll to output directory
Radovan
boombox boy

11/27/2008 10:44 AM  
The thing is MyLogWrapper is built as a release library as it is used throughout all my different projects and therefore I do not want to have a project reference.
I tried removing log4net.dll from the GAC and now it seems to get copied locally as expected. Maybe someone could clarify on why this is the case?

BB
You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Re: Log4net.dll reference copy-local=true not behaving as expected



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement