Return the corresponding format
| 77 | |
| 78 | // Return the corresponding format |
| 79 | DefaultLogger::Formatter* TestbedLogger::getFormatter(DefaultLogger::Format format) const { |
| 80 | |
| 81 | auto it = mFormatters.find(format); |
| 82 | if (it != mFormatters.end()) { |
| 83 | return it->second; |
| 84 | } |
| 85 | |
| 86 | return nullptr; |
| 87 | } |
| 88 | |
| 89 | // Add a log file destination to the logger |
| 90 | void TestbedLogger::addFileDestination(const std::string& worldName, reactphysics3d::uint logLevelFlag, reactphysics3d::DefaultLogger::Format format) { |