logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Using log4cxx with std::cout under MFC: msg#00024

apache.logging.log4cxx.user

Subject: Re: Using log4cxx with std::cout under MFC

You didn't mention if you were using the CVS HEAD or the 0.9.7 release.

If you are using the CVS HEAD, it is a problem that I have observed but haven't had a chance to analyze. The Ant script runs the unit tests which are all passing and then compile and run examples/trivial and examples/stream which should resulting in log statements appearing in the build log, but they don't. They fail on both Windows and Linux, but in different ways and if you build from the Visual Studio IDE, the programs work fine.

Since the unit tests pass, my assumption is that the problem is either with the BasicConfigurator or ConsoleAppender which is rarely used within the unit tests. You may be able to avoid the problem by using a PropertyConfigurator.

I've logged this issue as http://issues.apache.org/jira/browse/LOGCXX-56


On Feb 8, 2005, at 8:00 AM, BUSCHART Rufus SGI wrote:

Hi Guys,

I would like to have log4cxx to send the logging-messages to std::cout. I'm
using log4cxx under MS VC++ and have cout redirected to a console window. I
do have the following lines in my .h file




<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo