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

Function LogError

src/OpenColorIO/Logging.cpp:162–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void LogError(const std::string & text)
163{
164 AutoMutex lock(g_logmutex);
165 InitLogging();
166
167 // Did not add a LOGGING_LEVEL_ERROR since the enum values are part of the user-facing
168 // documentation and it is therefore difficult to insert an ERROR value since it would
169 // naturally need to fall between 0 and 1. But there is no need since presumably users
170 // that want to see warnings would also want to see errors.
171 if(g_logginglevel<LOGGING_LEVEL_WARNING) return;
172
173 LogMessage("[OpenColorIO Error]: ", text);
174}
175
176void LogWarning(const std::string & text)
177{

Callers 1

validateMethod · 0.85

Calls 2

InitLoggingFunction · 0.85
LogMessageFunction · 0.85

Tested by

no test coverage detected