| 160 | } |
| 161 | |
| 162 | void 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 | |
| 176 | void LogWarning(const std::string & text) |
| 177 | { |
no test coverage detected