Concordia
ConcordiaLogger Class Reference

#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)
 
ConcordiaLoggeroperator<< (const std::string &msg)
 
ConcordiaLoggeroperator<< (const char *msg)
 
ConcordiaLoggeroperator<< (unsigned long msg)
 
ConcordiaLoggeroperator<< (signed long msg)
 
ConcordiaLoggeroperator<< (unsigned int msg)
 
ConcordiaLoggeroperator<< (signed int msg)
 
ConcordiaLoggeroperator<< (unsigned short msg)
 
ConcordiaLoggeroperator<< (signed short msg)
 
ConcordiaLoggeroperator<< (float msg)
 
ConcordiaLoggeroperator<< (double msg)
 
ConcordiaLoggeroperator<< (bool msg)
 

Detailed Description

Logging class based on the log4cpp library. The class comes from PSI-Toolkit.

Constructor & Destructor Documentation

ConcordiaLogger::ConcordiaLogger ( )

Default constructor.

ConcordiaLogger::~ConcordiaLogger ( )

Destructor.

Member Function Documentation

void ConcordiaLogger::flush ( log4cpp::Priority::Value  priorityLevel)

Flush the current string buffer for given priorityLevel.

Parameters
priorityLevelthe logging priority of the buffer to flush
log4cpp::Priority::Value ConcordiaLogger::getLoggingPriority ( )

Getter for the logging priority

Returns
the current logging priority.
ConcordiaLogger & ConcordiaLogger::operator<< ( const std::string &  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( const char *  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( unsigned long  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( signed long  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( unsigned int  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( signed int  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( unsigned short  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( signed short  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( float  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( double  msg)

Operator for direct logging.

Parameters
msgmessage to log
ConcordiaLogger & ConcordiaLogger::operator<< ( bool  msg)

Operator for direct logging.

Parameters
msgmessage to log
void ConcordiaLogger::setLoggingPriority ( const std::string &  priorityName)

Setter for the logging priority.

Parameters
priorityNamethe log4cpp name of the logging priority
void ConcordiaLogger::setLoggingToFile ( const std::string &  filepath)

A method to initialize the log file.

Parameters
filepaththe path of the log file

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