class ConsoleConsumer

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

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

#include <ConsoleConsumer.h>

Inheritance diagram for acdk::util::logging::ConsoleConsumer:

acdk::util::logging::AbstractLogConsumer acdk::lang::Object acdk::util::logging::LogConsumer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Write the logs into the standard or error ouput console.

Public Member Functions

 ConsoleConsumer (IN(RFormatter) formatter=Nil, int minll=AllSys, int maxll=None, bool stdErr=false)
void publish (IN(RLogRecord) rec)
 Process the LogRecord.

virtual void configure (IN(RString) propnameprefix, IN(RProperties) props)
 Will be called by the LogManager to self-configuration this LogConsumer.

Protected Attributes

bool _logToStdErr

Constructor & Destructor Documentation

acdk::util::logging::ConsoleConsumer::ConsoleConsumer IN(RFormatter formatter = Nil,
int  minll = AllSys,
int  maxll = None,
bool  stdErr = false

formatter which format to log
minll minimum loglevel
maxll maximum loglevel
stdErr if true writes to System::err, else to System::out

Member Function Documentation

virtual void acdk::util::logging::ConsoleConsumer::configure IN(RString propnameprefix,
IN(RProperties props
[inline, virtual]

Will be called by the LogManager to self-configuration this LogConsumer.

To access a custom configure value 'foo' just read it with the the prefix propnameprefix + foo

Reimplemented from acdk::util::logging::AbstractLogConsumer.

void acdk::util::logging::ConsoleConsumer::publish IN(RLogRecord rec  )  [inline, virtual]

Process the LogRecord.

Implements acdk::util::logging::AbstractLogConsumer.

Member Data Documentation

bool acdk::util::logging::ConsoleConsumer::_logToStdErr [protected]