2005/5/9

     
 

class LogManager

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::logging::LogManager Class Reference
[ACDK Logging classes/functions/macros]

#include <LogManager.h>

Inheritance diagram for acdk::util::logging::LogManager:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

central instance to manage logging.

Normally this class has not to used directly in code.

Author:
Roger Rene Kommer


Static Public Member Functions

 INOUT (RLogger) getRootLogger()
 returns the RootLogger

 INOUT (RLogger) getNullLogger()
 returns a Logger with no consumer

RLogger getLogger (IN(RString) name)
 returns Logger configured or registered if name has '.' the parent logger will be searched
      name = acdk.aci.Parser
      getLogger searches:
        acdk.aci.Parser return if found
        acdk.aci return if found
        acdk return if found
        return RootLogger


RLogger getCreateLogger (IN(RString) name)
 return existant Logger or create a new one

void registerLogger (IN(RLogger) logger)
void deregisterLogger (IN(RLogger) logger)
void init_configure (INOUT(RLogger) rootlogger)
bool doLog (int level)
 OUTP (RFormatter) getStandardFormatter()
void setStandardFormatter (INP(RFormatter) formatter)
RStringArray parseCommandLine (IN(RStringArray) args)
 Parse the command line for Logging related options.


Static Public Attributes

int MinLevel
 All Message below this level has no active Logger.

int Threshold
 throw away all log message bolow this LogLevel

bool TresholdSet
 true if Threshold already forced by command line


Member Function Documentation

void acdk::util::logging::LogManager::deregisterLogger IN(RLogger logger  )  [static]
 

bool acdk::util::logging::LogManager::doLog int  level  )  [inline, static]
 

RLogger acdk::util::logging::LogManager::getCreateLogger IN(RString name  )  [static]
 

return existant Logger or create a new one

RLogger acdk::util::logging::LogManager::getLogger IN(RString name  )  [static]
 

returns Logger configured or registered if name has '.' the parent logger will be searched

      name = acdk.aci.Parser
      getLogger searches:
        acdk.aci.Parser return if found
        acdk.aci return if found
        acdk return if found
        return RootLogger

void acdk::util::logging::LogManager::init_configure INOUT(RLogger rootlogger  )  [static]
 

acdk::util::logging::LogManager::INOUT RLogger   )  [static]
 

returns a Logger with no consumer

acdk::util::logging::LogManager::INOUT RLogger   )  [static]
 

returns the RootLogger

acdk::util::logging::LogManager::OUTP RFormatter   )  [static]
 

RStringArray acdk::util::logging::LogManager::parseCommandLine IN(RStringArray args  )  [static]
 

Parse the command line for Logging related options.

Parameters:
args command line options
Returns:
the args but without the logging options

void acdk::util::logging::LogManager::registerLogger IN(RLogger logger  )  [static]
 

void acdk::util::logging::LogManager::setStandardFormatter INP(RFormatter formatter  )  [static]
 


Member Data Documentation

int acdk::util::logging::LogManager::MinLevel [static]
 

All Message below this level has no active Logger.

See also:
LogLevel

int acdk::util::logging::LogManager::Threshold [static]
 

throw away all log message bolow this LogLevel

See also:
LogLevel

bool acdk::util::logging::LogManager::TresholdSet [static]
 

true if Threshold already forced by command line