You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Rainer Schuetze <sc...@geoinform.fh-mainz.de> on 2005/12/02 17:55:57 UTC

Need advice for class logging

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