You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@logging.apache.org by Uwe Bohnhoff <ub...@bohnhoff-gmbh.de> on 2015/03/23 18:00:06 UTC
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://www.bohnhoff-gmbh.de<http://www.bohnhoff-gmbh.de/>
eMail: ubohnhoff@bohnhoff-gmbh.de<ma...@bohnhoff-gmbh.de>
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674
[cid:image001.gif@01C894F5.541D64D0]
AW: Problem
Posted by Dominik Psenner <dp...@gmail.com>.
Hi Uwe.
Im 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:ubohnhoff@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:dpsenner@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:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: 24 March 2015 20:54
An: Logging General
Betreff: AW: Problem
HI Dominik,
its right, now I found the problem, but i dont know to solve.
In one of our tools we use a software-SDK. This software-SDK uses log4net,
too.
I dont 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:dpsenner@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 wouldnt have passed unnoticed
for years, would it? :)
Let us know as soon as you were able to sort this out and dont hesitate to
respond to this message if you think that we can help you.
Cheers
Von: Uwe Bohnhoff [mailto:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: Montag, 23. März 2015 18:00
An: general@logging.apache.org <ma...@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: <ma...@bohnhoff-gmbh.de> ubohnhoff@bohnhoff-gmbh.de
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674
AW: Problem
Posted by Uwe Bohnhoff <ub...@bohnhoff-gmbh.de>.
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:dpsenner@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:ubohnhoff@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:dpsenner@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:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: Montag, 23. März 2015 18:00
An: general@logging.apache.org<ma...@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://www.bohnhoff-gmbh.de<http://www.bohnhoff-gmbh.de/>
eMail: ubohnhoff@bohnhoff-gmbh.de<ma...@bohnhoff-gmbh.de>
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674
[cid:image001.gif@01C894F5.541D64D0]
AW: Problem
Posted by Dominik Psenner <dp...@gmail.com>.
Good morning Uwe,
You could try this:
https://msdn.microsoft.com/en-us/library/ms173212.aspx
Cheers
Von: Uwe Bohnhoff [mailto:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: 24 March 2015 20:54
An: Logging General
Betreff: AW: Problem
HI Dominik,
its right, now I found the problem, but i dont know to solve.
In one of our tools we use a software-SDK. This software-SDK uses log4net,
too.
I dont 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:dpsenner@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 wouldnt have passed unnoticed
for years, would it? :)
Let us know as soon as you were able to sort this out and dont hesitate to
respond to this message if you think that we can help you.
Cheers
Von: Uwe Bohnhoff [mailto:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: Montag, 23. März 2015 18:00
An: general@logging.apache.org <ma...@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: <ma...@bohnhoff-gmbh.de> ubohnhoff@bohnhoff-gmbh.de
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674
AW: Problem
Posted by Uwe Bohnhoff <ub...@bohnhoff-gmbh.de>.
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:dpsenner@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:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: Montag, 23. März 2015 18:00
An: general@logging.apache.org<ma...@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://www.bohnhoff-gmbh.de<http://www.bohnhoff-gmbh.de/>
eMail: ubohnhoff@bohnhoff-gmbh.de<ma...@bohnhoff-gmbh.de>
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674
[cid:image001.gif@01C894F5.541D64D0]
AW: Problem
Posted by Dominik Psenner <dp...@gmail.com>.
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 wouldnt have passed unnoticed
for years, would it? :)
Let us know as soon as you were able to sort this out and dont hesitate to
respond to this message if you think that we can help you.
Cheers
Von: Uwe Bohnhoff [mailto:ubohnhoff@bohnhoff-gmbh.de]
Gesendet: Montag, 23. März 2015 18:00
An: 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: <ma...@bohnhoff-gmbh.de> ubohnhoff@bohnhoff-gmbh.de
Geschäftssitz: Berlin
HRB 33525 - Amtsgericht Berlin-Charlottenburg
Geschäftsführung: Birgit Nötzel
USt.-ID-Nr.: DE136573674