dlvhex  2.1.0
Logger Class Reference

#include <include/dlvhex2/Logger.h>

Collaboration diagram for Logger:

Data Structures

class  Closure
class  Init

Public Types

typedef uint32_t Levels

Public Member Functions

std::ostream & stream ()
void setPrintLevels (Levels levels)
void setPrintLevelWidth (int width)
Levels getPrintLevels () const
void startline (Levels forlevel)
bool shallPrint (Levels forlevel)

Static Public Member Functions

static LoggerInstance ()
static boost::mutex & Mutex ()

Static Public Attributes

static const Levels DBG = 0x01
static const Levels INFO = 0x02
static const Levels WARNING = 0x04
static const Levels ERROR = 0x08
static const Levels PLUGIN = 0x10
static const Levels ANALYZE = 0x20
static const Levels MODELB = 0x40
static const Levels STATS = 0x80

Private Member Functions

 Logger ()
 ~Logger ()

Private Attributes

std::ostream & out
boost::thread_specific_ptr
< std::string > 
indent
Levels printlevels
int levelwidth

Friends

class Closure

Detailed Description

Definition at line 51 of file Logger.h.


Member Typedef Documentation

typedef uint32_t Logger::Levels

Definition at line 57 of file Logger.h.


Constructor & Destructor Documentation

Logger::Logger ( ) [inline, private]

Definition at line 81 of file Logger.h.

Referenced by Instance().

Logger::~Logger ( ) [inline, private]

Definition at line 84 of file Logger.h.

References DBG, startline(), and stream().


Member Function Documentation

Definition at line 87 of file Logger.cpp.

References printlevels.

boost::mutex & Logger::Mutex ( ) [static]

Definition at line 54 of file Logger.cpp.

References Instance(), shallPrint(), stream(), and WARNING.

void Logger::setPrintLevelWidth ( int  width)

Definition at line 81 of file Logger.cpp.

References levelwidth.

Referenced by main().

void Logger::startline ( Levels  forlevel) [inline]

Definition at line 105 of file Logger.h.

References indent, levelwidth, and out.

Referenced by Logger::Closure::sayGoodbye(), Logger::Closure::sayHello(), and ~Logger().


Friends And Related Function Documentation

friend class Closure [friend]

Definition at line 118 of file Logger.h.


Field Documentation

const Levels Logger::ANALYZE = 0x20 [static]

Definition at line 65 of file Logger.h.

Referenced by MLPSolver::solve().

boost::thread_specific_ptr<std::string> Logger::indent [private]

Definition at line 72 of file Logger.h.

Referenced by Logger::Closure::Closure(), startline(), and Logger::Closure::~Closure().

const Levels Logger::INFO = 0x02 [static]

Definition at line 59 of file Logger.h.

Referenced by MLPSolver::comp(), processOptionsPrePlugin(), and testOneMainModules().

int Logger::levelwidth [private]

Definition at line 75 of file Logger.h.

Referenced by setPrintLevelWidth(), and startline().

std::ostream& Logger::out [private]

Definition at line 70 of file Logger.h.

Referenced by setPrintLevels(), startline(), and stream().

const Levels Logger::PLUGIN = 0x10 [static]

Definition at line 64 of file Logger.h.

Referenced by BaseModelGenerator::evaluateExternalAtom().

Definition at line 73 of file Logger.h.

Referenced by getPrintLevels(), setPrintLevels(), and shallPrint().

const Levels Logger::STATS = 0x80 [static]

Definition at line 67 of file Logger.h.


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