log4net and C++

M

Mirs

I use happily log4net in my C# solution. When I added C++ dll project I
encountered problems to integrate the same logger.
Does anyone has an I idea?
Regards
Mirs
 
I

Ignacio Machin ( .NET/ C# MVP )

I use happily log4net in my C# solution. When I added C++ dll project I
encountered problems to integrate the same logger.
Does anyone has an I idea?
Regards
Mirs

What problems?
 
M

Mirs

The problem is that its aimed to be used in a C# code and has got no API for
C/C++ code.
Is there any way to integrate it and use the same logger?
Regards
Mirs
I use happily log4net in my C# solution. When I added C++ dll project I
encountered problems to integrate the same logger.
Does anyone has an I idea?
Regards
Mirs

What problems?
 
P

Pavel Minaev

The problem is that its aimed to be used in a C# code and has got no API for
C/C++ code.

No, it's aimed to be used in CLR/.NET. You can access it from C++/CLI
just fine, and you can use the latter to expose its functionality to
native C++ code if you want (or just recompile your entire C++ lib
with /clr:pure).
 
U

usenet

I use happily log4net in my C# solution. When I added C++ dll project I
encountered problems to integrate the same logger.
Does anyone has an I idea?
Regards
Mirs

It is not recommended you use Log4Net in native projects, although it
is possible so long as you call-back into a managed code segment and
perform the logging there. The performance hit is pretty significant.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top