LogScope is a helper to use the logger. More...
#include <Logger.hpp>
Public Member Functions | |
LogScope (shared_ptr< Logger > logger, const std::string &beginMessage, const std::string &endMessage) | |
Constructor: Begin and end messages. | |
LogScope (shared_ptr< Logger > logger, const std::string &beginMessage) | |
Constructor: Only a begin message. | |
LogScope (shared_ptr< Logger > logger) | |
Constructor: No begin message and empty end message. This is only used to call begin and call end automatically when the object goes out of scope. |
LogScope is a helper to use the logger.
LogScope automatically makes the end level calls within it's destructor.
Definition at line 753 of file Logger.hpp.
LogScope::LogScope | ( | shared_ptr< Logger > | logger | ) |
Constructor: No begin message and empty end message. This is only used to call begin and call end automatically when the object goes out of scope.
logger | The logger to use. |
Definition at line 40 of file LogScope.cpp.
LogScope::LogScope | ( | shared_ptr< Logger > | logger, | |
const std::string & | beginMessage | |||
) |
Constructor: Only a begin message.
logger | The logger to use. | |
beginMessage | The message to log with level LOG_BEGIN right away. |
Definition at line 50 of file LogScope.cpp.
LogScope::LogScope | ( | shared_ptr< Logger > | logger, | |
const std::string & | beginMessage, | |||
const std::string & | endMessage | |||
) |
Constructor: Begin and end messages.
logger | The logger to use. | |
beginMessage | The message to log with level LOG_BEGIN right away. | |
endMessage | The message to log with level LOG_END when the class is destroyed. |
Definition at line 61 of file LogScope.cpp.