Concordia
|
#include <logging.hpp>
Public Member Functions | |
ConcordiaLogger () | |
~ConcordiaLogger () | |
void | setLoggingToFile (const std::string &filepath) |
void | setLoggingPriority (const std::string &priorityName) |
log4cpp::Priority::Value | getLoggingPriority () |
void | flush (log4cpp::Priority::Value priorityLevel) |
ConcordiaLogger & | operator<< (const std::string &msg) |
ConcordiaLogger & | operator<< (const char *msg) |
ConcordiaLogger & | operator<< (unsigned long msg) |
ConcordiaLogger & | operator<< (signed long msg) |
ConcordiaLogger & | operator<< (unsigned int msg) |
ConcordiaLogger & | operator<< (signed int msg) |
ConcordiaLogger & | operator<< (unsigned short msg) |
ConcordiaLogger & | operator<< (signed short msg) |
ConcordiaLogger & | operator<< (float msg) |
ConcordiaLogger & | operator<< (double msg) |
ConcordiaLogger & | operator<< (bool msg) |
Logging class based on the log4cpp library. The class comes from PSI-Toolkit.
ConcordiaLogger::ConcordiaLogger | ( | ) |
Default constructor.
ConcordiaLogger::~ConcordiaLogger | ( | ) |
Destructor.
void ConcordiaLogger::flush | ( | log4cpp::Priority::Value | priorityLevel | ) |
Flush the current string buffer for given priorityLevel.
priorityLevel | the logging priority of the buffer to flush |
log4cpp::Priority::Value ConcordiaLogger::getLoggingPriority | ( | ) |
Getter for the logging priority
ConcordiaLogger & ConcordiaLogger::operator<< | ( | const std::string & | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | const char * | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | unsigned long | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | signed long | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | unsigned int | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | signed int | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | unsigned short | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | signed short | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | float | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | double | msg | ) |
Operator for direct logging.
msg | message to log |
ConcordiaLogger & ConcordiaLogger::operator<< | ( | bool | msg | ) |
Operator for direct logging.
msg | message to log |
void ConcordiaLogger::setLoggingPriority | ( | const std::string & | priorityName | ) |
Setter for the logging priority.
priorityName | the log4cpp name of the logging priority |
void ConcordiaLogger::setLoggingToFile | ( | const std::string & | filepath | ) |
A method to initialize the log file.
filepath | the path of the log file |