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

Method setLogger

include/reactphysics3d/engine/PhysicsCommon.h:279–281  ·  view source on GitHub ↗

Set the logger * @param logger A pointer to the logger to use */

Source from the content-addressed store, hash-verified

277 * @param logger A pointer to the logger to use
278 */
279RP3D_FORCE_INLINE void PhysicsCommon::setLogger(Logger* logger) {
280 mLogger = logger;
281}
282
283// Use this macro to log something
284#define RP3D_LOG(physicsWorldName, level, category, message, filename, lineNumber) if (reactphysics3d::PhysicsCommon::getLogger() != nullptr) PhysicsCommon::getLogger()->log(level, physicsWorldName, category, message, filename, lineNumber)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected