| 98 | } |
| 99 | |
| 100 | void SetLoggingLevel(LoggingLevel level) |
| 101 | { |
| 102 | AutoMutex lock(g_logmutex); |
| 103 | InitLogging(); |
| 104 | |
| 105 | // Calls to SetLoggingLevel are ignored if OCIO_LOGGING_LEVEL_ENVVAR |
| 106 | // is specified. This is to allow users to optionally debug OCIO at |
| 107 | // runtime even in applications that disable logging. |
| 108 | |
| 109 | if(!g_loggingOverride) |
| 110 | { |
| 111 | g_logginglevel = level; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void SetLoggingFunction(LoggingFunction logFunction) |
| 116 | { |