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

Method getFormatter

src/utils/DefaultLogger.cpp:54–62  ·  view source on GitHub ↗

Return the corresponding formatter

Source from the content-addressed store, hash-verified

52
53// Return the corresponding formatter
54DefaultLogger::Formatter* DefaultLogger::getFormatter(Format format) const {
55
56 auto it = mFormatters.find(format);
57 if (it != mFormatters.end()) {
58 return it->second;
59 }
60
61 return nullptr;
62}
63
64// Add a log file destination to the logger
65void DefaultLogger::addFileDestination(const std::string& filePath, uint logLevelFlag, Format format) {

Callers

nothing calls this directly

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected