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: Log4Net in C++
Prev Next
You are not authorized to post a reply.

Author Messages
Komyg

04/30/2009 12:58 PM  


Hi, does anyone know if I can use log4net with C++ and Visual Studio 2008
Express? If so can you point me to some tutorials, I have spent quite some
time looking for those, but they seem to have completely eluded me.

Also if it is not at all possible to use log4net with C++, can you recommend
me another logging api?

Thanks,
Komyg

Ross Hinkley

04/30/2009 2:18 PM  
Check out log4cxx:

http://logging.apache.org/log4cxx

It sounds like that's what you're looking for.

-Ross

On Thu, Apr 30, 2009 at 5:58 AM, Komyg <farmoni@itautec.com> wrote:

Hi, does anyone know if I can use log4net with C++ and Visual Studio 2008
Express? If so can you point me to some tutorials, I have spent quite some
time looking for those, but they seem to have completely eluded me.

Also if it is not at all possible to use log4net with C++, can you recommend
me another logging api?

Thanks,
Komyg
--
View this message in context: http://www.nabble.com/Log4Net-in-C%2B%2B-tp23313958p23313958.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Radovan Raszka

04/30/2009 2:19 PM  

If you are writing unmanaged code, you should use log4cxx, see http://logging.apache.org/log4cxx/index.html, http://logging.apache.org/log4cxx/apidocs/index.html. There is also log4cxx-user mailing list, try to subscribe.

Log4net is for managed code only, I think.

Radovan

Komyg

04/30/2009 2:30 PM  


Yes, I think that is what I am looking for, thank you very much.

Please note that I am writing managed code, so in this case should I use
log4net instead of log4cxx?

Thanks,
Komyg

Radovan Raszka

04/30/2009 2:38 PM  

In managed code it should be possible to use log4net, try it. I have no own experience with such solution as I am using C# only.
Radovan

Ross Hinkley

04/30/2009 3:08 PM  
According to the documentation, there should be a managed C++ example in the examples\net\1.1 folder.  The link is broken on the site, but digging through log4net 1.2.10, the example still exists in the zip.  I have no idea how helpful that will prove to you, I didn't look at it; but it's at least a start.

-Ross
Rob Prouse

04/30/2009 3:30 PM  

We use log4net in our managed C++ and even have wrappers to call it from our Native code and it works quite well. If you know a bit of C#, then those examples should get you up and running. It works the same, you just need to translate the syntax over to C++.

Rob Prouse

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Log4Net in C++



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