Add a log file destination to the logger
| 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) { |
| 91 | |
| 92 | std::string filePath = "rp3d_log_" + worldName + ".html"; |
| 93 | reactphysics3d::DefaultLogger::FileDestination* destination = new reactphysics3d::DefaultLogger::FileDestination(filePath, logLevelFlag, getFormatter(format)); |
| 94 | mMapWorldToDestinations.insert({worldName, destination}); |
| 95 | } |
| 96 | |
| 97 | // Add a stream destination to the logger |
| 98 | void TestbedLogger::addStreamDestination(std::ostream& outputStream, reactphysics3d::uint logLevelFlag, reactphysics3d::DefaultLogger::Format format) { |