LogManager Class Reference

#include <Logger.h>

List of all members.

Public Member Functions

virtual ~LogManager ()
 LogManager ()
void setDebugOption (bool debug)
void setErrorOption (bool errors)
virtual void log_error (const std::string &name, const std::string &message) const
virtual void log_debug (const std::string &name, const std::string &message) const

Private Attributes

const std::string m_app_name
bool m_log_debug
bool m_log_errors


Detailed Description

Definition at line 24 of file Logger.h.


Constructor & Destructor Documentation

virtual LogManager::~LogManager (  )  [inline, virtual]

Definition at line 26 of file Logger.h.

00026 {}

LogManager::LogManager (  )  [inline]

Definition at line 27 of file Logger.h.

00027 : m_app_name(""), m_log_debug(true), m_log_errors(true) {}


Member Function Documentation

virtual void LogManager::log_debug ( const std::string &  name,
const std::string &  message 
) const [inline, virtual]

Definition at line 36 of file Logger.h.

References m_log_debug.

00036                                                                                    {
00037         if(m_log_debug) 
00038           std::cout << "debug: " << name << " :: " << message << std::endl;
00039       }

virtual void LogManager::log_error ( const std::string &  name,
const std::string &  message 
) const [inline, virtual]

Definition at line 32 of file Logger.h.

References m_log_errors.

00032                                                                                     {
00033         if(m_log_errors)  
00034           std::cout << "   error: " << name << " :: " << message << std::endl;
00035       }

void LogManager::setDebugOption ( bool  debug  ) 

Definition at line 28 of file Logger.cpp.

References m_log_debug.

00028                                           {
00029   m_log_debug = debug;
00030 }

void LogManager::setErrorOption ( bool  errors  ) 

Definition at line 32 of file Logger.cpp.

References m_log_debug.

00032                                            {
00033   m_log_debug = errors;
00034 }


Member Data Documentation

const std::string LogManager::m_app_name [private]

Definition at line 42 of file Logger.h.

bool LogManager::m_log_debug [private]

Definition at line 43 of file Logger.h.

Referenced by log_debug(), setDebugOption(), and setErrorOption().

bool LogManager::m_log_errors [private]

Definition at line 44 of file Logger.h.

Referenced by log_error().


The documentation for this class was generated from the following files:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:02 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo