cxxtools::Logger Class Reference

#include <cxxtools/log/cxxtools.h>

Public Types

enum  log_flag_type {
  LOG_FATAL = 0x01, LOG_ERROR = 0x02, LOG_WARN = 0x04, LOG_INFO = 0x08,
  LOG_DEBUG = 0x10, LOG_FINE = 0x10, LOG_FINER = 0x20, LOG_FINEST = 0x40,
  LOG_TRACE = 0x80
}
enum  log_level_type {
  LOG_LEVEL_FATAL = (LOG_FATAL << 1) - 1, LOG_LEVEL_ERROR = (LOG_ERROR << 1) - 1, LOG_LEVEL_WARN = (LOG_WARN << 1) - 1, LOG_LEVEL_INFO = (LOG_INFO << 1) - 1,
  LOG_LEVEL_DEBUG = (LOG_DEBUG << 1) - 1, LOG_LEVEL_FINE = (LOG_FINE << 1) - 1, LOG_LEVEL_FINER = (LOG_FINER << 1) - 1, LOG_LEVEL_FINEST = (LOG_FINEST << 1) - 1,
  LOG_LEVEL_TRACE = LOG_LEVEL_DEBUG | LOG_TRACE
}

Public Member Functions

 Logger (const std::string &c, int f)
 Initalizes a new logger.
const std::string & getCategory () const
bool isEnabled (log_flag_type l) const
log_level_type getLogLevel () const
int getLogFlags () const
void setLogFlags (int f)

Member Enumeration Documentation

Enumerator:
LOG_FATAL 
LOG_ERROR 
LOG_WARN 
LOG_INFO 
LOG_DEBUG 
LOG_FINE 
LOG_FINER 
LOG_FINEST 
LOG_TRACE 
Enumerator:
LOG_LEVEL_FATAL 
LOG_LEVEL_ERROR 
LOG_LEVEL_WARN 
LOG_LEVEL_INFO 
LOG_LEVEL_DEBUG 
LOG_LEVEL_FINE 
LOG_LEVEL_FINER 
LOG_LEVEL_FINEST 
LOG_LEVEL_TRACE 

Constructor & Destructor Documentation

cxxtools::Logger::Logger ( const std::string &  c,
int  f 
)
inline

Initalizes a new logger.

Member Function Documentation

const std::string& cxxtools::Logger::getCategory ( ) const
inline
int cxxtools::Logger::getLogFlags ( ) const
inline
log_level_type cxxtools::Logger::getLogLevel ( ) const
inline
bool cxxtools::Logger::isEnabled ( log_flag_type  l) const
inline
void cxxtools::Logger::setLogFlags ( int  f)
inline

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