logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Schuetze <schue...@geoinform.fh-mainz.de>
Subject Need advice for class logging
Date Fri, 02 Dec 2005 17:27:51 GMT
Hi,

I tried to log different class with e.g. the level "info". But the
logger logs on the basic level. I've no idea what I'm doing wrong. I
need somebodies help.

I've defined the logger as a private static variable in the header file.
In my CPP file I get the instance of my logger as follow:

log4cxx::LoggerPtr XMLParser::logger =
log4cxx::LoggerPtr(log4cxx::Logger::getLogger("limez.xml.XMLParser"));

I'm using the DOMConfigurator to configure and defined within the XML
file the logger as follow:

   <logger name="limez">
     <level value="info" />
   </logger>

   <root>
     <priority value ="debug" />
     <appender-ref ref="stdout" />
   </root>

Regards
Rainer


Mime
View raw message