MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / addFileDestination

Method addFileDestination

testbed/src/TestbedLogger.cpp:90–95  ·  view source on GitHub ↗

Add a log file destination to the logger

Source from the content-addressed store, hash-verified

88
89// Add a log file destination to the logger
90void 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
98void TestbedLogger::addStreamDestination(std::ostream& outputStream, reactphysics3d::uint logLevelFlag, reactphysics3d::DefaultLogger::Format format) {

Callers 1

createScenesMethod · 0.45

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected