![]() |
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.
|
#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 |
Definition at line 43 of file PDBLogger.h.
| 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.
| void pdb::PDBLogger::debug | ( | std::string | writeMe | ) |
| void pdb::PDBLogger::error | ( | std::string | writeMe | ) |
| void pdb::PDBLogger::fatal | ( | std::string | writeMe | ) |
| LogLevel pdb::PDBLogger::getLoglevel | ( | ) |
Definition at line 212 of file PDBLogger.cc.
| void pdb::PDBLogger::info | ( | std::string | writeMe | ) |
| 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 | ) |
| void pdb::PDBLogger::warn | ( | std::string | writeMe | ) |
| void pdb::PDBLogger::write | ( | char * | data, |
| unsigned int | length | ||
| ) |
Definition at line 199 of file PDBLogger.cc.
| void pdb::PDBLogger::writeInt | ( | int | writeMe | ) |
| void pdb::PDBLogger::writeLn | ( | std::string | writeMe | ) |
|
private |
Definition at line 111 of file PDBLogger.h.
|
private |
Definition at line 106 of file PDBLogger.h.
Definition at line 113 of file PDBLogger.h.
|
private |
Definition at line 109 of file PDBLogger.h.