logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob L. Anawalt" <janaw...@geckosoftware.com>
Subject Re: A completely novice question
Date Thu, 07 May 2009 16:40:20 GMT
On 2009-05-07 09:01, Duncan Adams wrote:
> #include <log4cxx/logger.h>
> static log4cxx::LoggerPtr logger("loggername");
> 

It wants a logger pointer not a string. Do this:

static log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger("loggername"));

-- 
Jacob Anawalt
Gecko Software, Inc.
janawalt@geckosoftware.com
435-752-8026

Mime
View raw message