Constructor
| 30 | |
| 31 | // Constructor |
| 32 | TestbedLogger::TestbedLogger() { |
| 33 | |
| 34 | // Create the log formatters |
| 35 | mFormatters.insert({reactphysics3d::DefaultLogger::Format::Text, new reactphysics3d::DefaultLogger::TextFormatter()}); |
| 36 | mFormatters.insert({reactphysics3d::DefaultLogger::Format::HTML, new reactphysics3d::DefaultLogger::HtmlFormatter()}); |
| 37 | |
| 38 | // Add destination to send warning and errors to standard output |
| 39 | uint warningsErrors = static_cast<uint>(reactphysics3d::Logger::Level::Warning); |
| 40 | addStreamDestination(std::cout, warningsErrors, reactphysics3d::DefaultLogger::Format::Text); |
| 41 | } |
| 42 | |
| 43 | // Destructor |
| 44 | TestbedLogger::~TestbedLogger() { |