|
blockfactory
0.8
A framework for wrapping algorithms for dataflow programming
|
Class for handling log messages. More...
#include <Log.h>
Class for handling log messages.
Errors and Warnings are currently supported.
Public Types | |
| enum | Type { Type::ERROR, Type::WARNING } |
| enum | Verbosity { Verbosity::RELEASE, Verbosity::DEBUG } |
Public Member Functions | |
| Log () | |
| ~Log ()=default | |
| std::stringstream & | getLogStringStream (const Type &type, const std::string &file, const unsigned &line, const std::string &function) |
| Get the stringstream object for adding log messages. More... | |
| std::string | getErrors () const |
| Get the stored error messages. More... | |
| std::string | getWarnings () const |
| Get the stored warning messages. More... | |
| void | clearErrors () |
| Clear the stored error messages. More... | |
| void | clearWarnings () |
| Clear the stored warning messages. More... | |
| void | clear () |
| Clear all the stored log messages. More... | |
Static Public Member Functions | |
| static blockfactory::core::Log & | getSingleton () |
| Get the Log singleton. More... | |
|
strong |
|
strong |
| blockfactory::core::Log::Log | ( | ) |
|
default |
| void blockfactory::core::Log::clear | ( | ) |
Clear all the stored log messages.
| void blockfactory::core::Log::clearErrors | ( | ) |
Clear the stored error messages.
| void blockfactory::core::Log::clearWarnings | ( | ) |
Clear the stored warning messages.
| std::string blockfactory::core::Log::getErrors | ( | ) | const |
Get the stored error messages.
| std::stringstream& blockfactory::core::Log::getLogStringStream | ( | const Type & | type, |
| const std::string & | file, | ||
| const unsigned & | line, | ||
| const std::string & | function | ||
| ) |
Get the stringstream object for adding log messages.
| type | The log type. |
| file | The file from which this method is called (preprocessor directive). |
| line | The line from which this method is called (preprocessor directive). |
| function | The function from which this method is called (preprocessor directive). |
|
static |
Get the Log singleton.
There is only one instance of this class in the whole process.
| std::string blockfactory::core::Log::getWarnings | ( | ) | const |
Get the stored warning messages.