MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / LogMessage

Function LogMessage

src/OpenColorIO/Logging.cpp:75–88  ·  view source on GitHub ↗

If the message contains multiple lines, then preprocess it to output the content line by line.

Source from the content-addressed store, hash-verified

73// If the message contains multiple lines, then preprocess it
74// to output the content line by line.
75void LogMessage(const char * messagePrefix, const std::string & message)
76{
77 const StringUtils::StringVec parts
78 = StringUtils::SplitByLines(StringUtils::RightTrim(message));
79
80 for (const auto & part : parts)
81 {
82 std::string msg(messagePrefix);
83 msg += part;
84 msg += "\n";
85
86 g_loggingFunction(msg.c_str());
87 }
88}
89
90}
91

Callers 5

LogErrorFunction · 0.85
LogWarningFunction · 0.85
LogInfoFunction · 0.85
LogDebugFunction · 0.85
~LogMessageHelperMethod · 0.85

Calls 5

SplitByLinesFunction · 0.85
RightTrimFunction · 0.85
LogWarningFunction · 0.85
LogInfoFunction · 0.85
LogDebugFunction · 0.85

Tested by

no test coverage detected