Hi Uwe.

 

I’m glad you found a way that works for you. The source is open, you can do
almost whatever you want with it so long you respect the copyright license:

 

http://www.apache.org/licenses/LICENSE-2.0

 

Cheers

 

Von: Uwe Bohnhoff [mailto:ubohnh...@bohnhoff-gmbh.de] 
Gesendet: 27 March 2015 09:06
An: Logging General
Betreff: AW: Problem

 

Hi Dominik,

thank you for your help.

I have found another way. 

I have changed the name of log4net in all sources in XYlog4net, recompiled
and use this XYlog4net.dll in our tool.

Now our tool works with XYlog4net and the used Software SDK works with
log4net.

 

I hope this is not a problem with apache.

 

Best regards,

Uwe

 

Von: Dominik Psenner [mailto:dpsen...@gmail.com] 
Gesendet: Mittwoch, 25. März 2015 08:34
An: 'Logging General'
Betreff: AW: Problem

 

Good morning Uwe,

 

You could try this:

 

https://msdn.microsoft.com/en-us/library/ms173212.aspx

 

Cheers

 

Von: Uwe Bohnhoff [mailto:ubohnh...@bohnhoff-gmbh.de] 
Gesendet: 24 March 2015 20:54
An: Logging General
Betreff: AW: Problem

 

HI Dominik,

it’s right, now I found the problem, but i don’t know to solve.

 

In one of our tools we use a software-SDK. This software-SDK uses log4net,
too.

 

I don’t want to use the implementation oft he SDK.

How to use log4net in my tool, how to redefining ?

 

Thank you,

 

Best regards,

Uwe

 

Von: Dominik Psenner [mailto:dpsen...@gmail.com] 
Gesendet: Dienstag, 24. März 2015 08:24
An: 'Logging General'
Betreff: AW: Problem

 

Hi Uwe,

 

Usually this means that you have included (different versions of?) log4net
multiple times in your project (multiple includes) because then the runtime
tries to load the DLL multiple times, redefining the log4net namespace on
each load and bailing when it tries for the second time.

 

The LogManager class surely does not exists two times in the namespace as
that would mean it could never work and that wouldn’t have passed unnoticed
for years, would it? :)

 

Let us know as soon as you were able to sort this out and don’t hesitate to
respond to this message if you think that we can help you.

 

Cheers

 

Von: Uwe Bohnhoff [mailto:ubohnh...@bohnhoff-gmbh.de] 
Gesendet: Montag, 23. März 2015 18:00
An: general@logging.apache.org <mailto:general@logging.apache.org> 
Betreff: Problem

 

Hi,

we have added log4net to our tools.

Now, we tried again to another tool and get this message:

 

    Public Shared ReadOnly bblog As log4net.ILog =
log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod()
.DeclaringType)

 

„LogManager“ is in Namespace „log4net“ not unique.

 

What is our problem in this tool. All tools created in Visual Studio 2012
with vb.net.

 

Best regards,

 

 

Mit freundlichen Grüßen

 

Uwe Bohnhoff
Bohnhoff Soft- und Hardware Systeme GmbH

****************************************************************************
***
Bohnhoff Soft- und Hardware Systeme GmbH                  

Wilhelmstr. 66                                  

13593 Berlin                                      

                                                  

Tel.:    +49 (0)30 / 35 39 36 -0                  

Fax:    +49 (0)30 / 35 39 36 18                           

http:// <http://www.bohnhoff-gmbh.de/> www.bohnhoff-gmbh.de

eMail:  <mailto:bubohnh...@bohnhoff-gmbh.de> ubohnh...@bohnhoff-gmbh.de    

 

Geschäftssitz: Berlin

HRB 33525 - Amtsgericht Berlin-Charlottenburg

Geschäftsführung: Birgit Nötzel

USt.-ID-Nr.: DE136573674

 

              

 

Reply via email to