On 06/13/2012 12:34 AM, João Costa wrote:
> I'm writing a library where I'd like to use log4cplus.
> My library has a dependency on a third-party library (
> http://forexforums.dailyfx.com/forexconnect/392705-forexconnect-api-subscribe-updates.html
> ) which also uses log4cplus. This third party is closed source and
> provided in binary format only.
>
>
> Logging from my library works correctly using ( i'm using
> BasicConfigurator), however, once I instantiate an object from this
> 3rd party library which also uses log4cplus, logging in my own lib
> stops working ( nothing is outputted anymore).
>
>
> Is my use case supported and expected to work ? Or maybe there is
> something obvious that prevents this from working ?
TBH, I have no idea.
How is log4cplus linked to the Forexconnect and how is log4cplus linked
to your application?
I think that if you provide your own log4cplus DLL with different name
than the Forexconnect one, things might work. Hmm, but I guess you would
have to make sure that you do not mix your log4cplus headers and
Forexconnect's log4cplus headers. Worst case, you would have to rename
your log4cplus' namespace to something different to avoid conflict and
recompile your log4cplus binary with this change as well.
So, answer to your question seems more like no rather than yes.
--
VZ
|