You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Komyg <fa...@itautec.com> on 2009/04/30 12:58:04 UTC
Log4Net in C++
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.
RE: Log4Net in C++
Posted by Rob Prouse <Ro...@Ivara.com>.
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
-----Original Message-----
From: Komyg [mailto:farmoni@itautec.com]
Sent: April-30-09 8:30 AM
To: log4net-user@logging.apache.org
Subject: RE: Log4Net in C++
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 wrote:
>
> 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
>
> -----Původní zpráva-----
> Od: Komyg [mailto:farmoni@itautec.com]
> Odesláno: 30. dubna 2009 12:58
> Komu: log4net-user@logging.apache.org
> Předmět: Log4Net in C++
>
>
> 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.
>
>
>
--
View this message in context: http://www.nabble.com/Log4Net-in-C%2B%2B-tp23313958p23315333.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
Re: Log4Net in C++
Posted by Ross Hinkley <ro...@gmail.com>.
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
2009/4/30 Radovan Raszka <ra...@hasam.cz>
> 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
>
> -----Původní zpráva-----
> Od: Komyg [mailto:farmoni@itautec.com]
> Odesláno: 30. dubna 2009 14:30
> Komu: log4net-user@logging.apache.org
> Předmět: RE: Log4Net in C++
>
>
> 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 wrote:
> >
> > 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
> >
> > -----Původní zpráva-----
> > Od: Komyg [mailto:farmoni@itautec.com]
> > Odesláno: 30. dubna 2009 12:58
> > Komu: log4net-user@logging.apache.org
> > Předmět: Log4Net in C++
> >
> >
> > 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.
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Log4Net-in-C%2B%2B-tp23313958p23315333.html
> Sent from the Log4net - Users mailing list archive at Nabble.com.
>
>
RE: Log4Net in C++
Posted by Radovan Raszka <ra...@hasam.cz>.
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
-----Původní zpráva-----
Od: Komyg [mailto:farmoni@itautec.com]
Odesláno: 30. dubna 2009 14:30
Komu: log4net-user@logging.apache.org
Předmět: RE: Log4Net in C++
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 wrote:
>
> 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
>
> -----Původní zpráva-----
> Od: Komyg [mailto:farmoni@itautec.com]
> Odesláno: 30. dubna 2009 12:58
> Komu: log4net-user@logging.apache.org
> Předmět: Log4Net in C++
>
>
> 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.
>
>
>
--
View this message in context: http://www.nabble.com/Log4Net-in-C%2B%2B-tp23313958p23315333.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
RE: Log4Net in C++
Posted by Komyg <fa...@itautec.com>.
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 wrote:
>
> 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
>
> -----Původní zpráva-----
> Od: Komyg [mailto:farmoni@itautec.com]
> Odesláno: 30. dubna 2009 12:58
> Komu: log4net-user@logging.apache.org
> Předmět: Log4Net in C++
>
>
> 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.
>
>
>
--
View this message in context: http://www.nabble.com/Log4Net-in-C%2B%2B-tp23313958p23315333.html
Sent from the Log4net - Users mailing list archive at Nabble.com.
RE: Log4Net in C++
Posted by Radovan Raszka <ra...@hasam.cz>.
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
-----Původní zpráva-----
Od: Komyg [mailto:farmoni@itautec.com]
Odesláno: 30. dubna 2009 12:58
Komu: log4net-user@logging.apache.org
Předmět: Log4Net in C++
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.
Re: Log4Net in C++
Posted by Ross Hinkley <ro...@gmail.com>.
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 <fa...@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.
>
>