A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::PDBLogger Class Reference

#include <PDBLogger.h>

+ Collaboration diagram for pdb::PDBLogger:

Public Member Functions

 PDBLogger (std::string fName)
 
void open (std::string fName)
 
 ~PDBLogger ()
 
void setEnabled (bool enabled)
 
void writeLn (std::string writeMe)
 
void write (char *data, unsigned int length)
 
void writeInt (int writeMe)
 
LogLevel getLoglevel ()
 
void setLoglevel (LogLevel loglevel)
 
void fatal (std::string writeMe)
 
void error (std::string writeMe)
 
void warn (std::string writeMe)
 
void info (std::string writeMe)
 
void debug (std::string writeMe)
 
void trace (std::string writeMe)
 

Private Attributes

pthread_mutex_t fileLock
 
FILE * outputFile
 
bool enabled = true
 
LogLevel loglevel = WARN
 

Detailed Description

Definition at line 43 of file PDBLogger.h.

Constructor & Destructor Documentation

pdb::PDBLogger::PDBLogger ( std::string  fName)

Definition at line 35 of file PDBLogger.cc.

pdb::PDBLogger::~PDBLogger ( )

Definition at line 75 of file PDBLogger.cc.

Member Function Documentation

void pdb::PDBLogger::debug ( std::string  writeMe)

Definition at line 126 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::error ( std::string  writeMe)

Definition at line 153 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::fatal ( std::string  writeMe)

Definition at line 161 of file PDBLogger.cc.

+ Here is the call graph for this function:

LogLevel pdb::PDBLogger::getLoglevel ( )

Definition at line 212 of file PDBLogger.cc.

void pdb::PDBLogger::info ( std::string  writeMe)

Definition at line 135 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::open ( std::string  fName)

Definition at line 57 of file PDBLogger.cc.

void pdb::PDBLogger::setEnabled ( bool  enabled)

Definition at line 208 of file PDBLogger.cc.

void pdb::PDBLogger::setLoglevel ( LogLevel  loglevel)

Definition at line 216 of file PDBLogger.cc.

void pdb::PDBLogger::trace ( std::string  writeMe)

Definition at line 117 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::warn ( std::string  writeMe)

Definition at line 144 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::write ( char *  data,
unsigned int  length 
)

Definition at line 199 of file PDBLogger.cc.

void pdb::PDBLogger::writeInt ( int  writeMe)

Definition at line 96 of file PDBLogger.cc.

+ Here is the call graph for this function:

void pdb::PDBLogger::writeLn ( std::string  writeMe)

Definition at line 170 of file PDBLogger.cc.

+ Here is the caller graph for this function:

Member Data Documentation

bool pdb::PDBLogger::enabled = true
private

Definition at line 111 of file PDBLogger.h.

pthread_mutex_t pdb::PDBLogger::fileLock
private

Definition at line 106 of file PDBLogger.h.

LogLevel pdb::PDBLogger::loglevel = WARN
private

Definition at line 113 of file PDBLogger.h.

FILE* pdb::PDBLogger::outputFile
private

Definition at line 109 of file PDBLogger.h.


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