deLoggerChain Class Reference

Chain Logger. More...

#include <deLoggerChain.h>

Inheritance diagram for deLoggerChain:
deLoggerBuffered deLogger deObject

List of all members.

Public Member Functions

Constructors and Destructors
 deLoggerChain ()
 Creates a new chain logger.
virtual ~deLoggerChain ()
 Cleans up the chain logger.
Management
int GetLoggerCount () const
 Retrieves the number of loggers in the chain.
deLoggerGetLoggerAt (int index) const
 Retrieves the logger at the given position.
void AddLogger (deLogger *logger)
 Adds a logger to the chain.
void RemoveLogger (deLogger *logger)
 Removes a logger from the chain.
void RemoveAllLoggers ()
 Removes all loggers from the chain.
virtual void LogInfo (const char *source, const char *message)
 Log an information message.
virtual void LogWarn (const char *source, const char *message)
 Log a warning message.
virtual void LogError (const char *source, const char *message)
 Log an error message.

Detailed Description

Chain Logger.

Provides logging support for the entire engine. Sends the log entries to multiple loggers in a given order. Useful to log a message in more than one place for example on the console and in a file.

Author:
Plüss Roland
Version:
1.0
Date:
2010

Constructor & Destructor Documentation

deLoggerChain::deLoggerChain (  )

Creates a new chain logger.

virtual deLoggerChain::~deLoggerChain (  ) [virtual]

Cleans up the chain logger.


Member Function Documentation

void deLoggerChain::AddLogger ( deLogger logger )

Adds a logger to the chain.

deLogger* deLoggerChain::GetLoggerAt ( int  index ) const

Retrieves the logger at the given position.

int deLoggerChain::GetLoggerCount (  ) const [inline]

Retrieves the number of loggers in the chain.

virtual void deLoggerChain::LogError ( const char *  source,
const char *  message 
) [virtual]

Log an error message.

Reimplemented from deLogger.

virtual void deLoggerChain::LogInfo ( const char *  source,
const char *  message 
) [virtual]

Log an information message.

Reimplemented from deLogger.

virtual void deLoggerChain::LogWarn ( const char *  source,
const char *  message 
) [virtual]

Log a warning message.

Reimplemented from deLogger.

void deLoggerChain::RemoveAllLoggers (  )

Removes all loggers from the chain.

void deLoggerChain::RemoveLogger ( deLogger logger )

Removes a logger from the chain.


The documentation for this class was generated from the following file: