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 Torsten Wiebesiek <to...@grecon.de> on 2007/06/14 12:24:54 UTC

Retrieve logger hierarchy

Hi,

I'd like to change the logging behavior of my program at runtime.
Therefore, I'd like to visualize the current logger hierarchy. Can
someone tell me, how to access the logger hierarchy?

The log4cxx::Hierarchy::getCurrentLoggers() function should help, but
how can I get the hierarchy object corresponding to the current logger
hierarchy? With log4cxx::Logger::getLoggerRepository(), I can only
access the repository, not the derived hiearchy.

Regards,

  Torsten