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

Method log

src/utils/DefaultLogger.cpp:104–119  ·  view source on GitHub ↗

Log something

Source from the content-addressed store, hash-verified

102
103// Log something
104void DefaultLogger::log(Level level, const std::string& physicsWorldName, Category category, const std::string& message, const char* filename, int lineNumber) {
105
106 // Get current time
107 auto now = std::chrono::system_clock::now();
108 auto time = std::chrono::system_clock::to_time_t(now);
109
110 mMutex.lock();
111
112 // For each destination
113 for (auto it = mDestinations.begin(); it != mDestinations.end(); ++it) {
114
115 (*it)->write(time, physicsWorldName, message, level, category, filename, lineNumber);
116 }
117
118 mMutex.unlock();
119}

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected