MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / setLoglevel

Method setLoglevel

LogManager.cpp:291–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void LogManager::setLoglevel(unsigned int level)
292{
293 /*-------------------------------------------------*\
294 | Check that the new log level is valid, otherwise |
295 | set it within the valid range |
296 \*-------------------------------------------------*/
297 if(level > LL_TRACE)
298 {
299 level = LL_TRACE;
300 }
301
302 LOG_DEBUG("Loglevel set to %d", level);
303
304 /*-------------------------------------------------*\
305 | Set the new log level |
306 \*-------------------------------------------------*/
307 loglevel = level;
308}
309
310void LogManager::setVerbosity(unsigned int level)
311{

Calls

no outgoing calls

Tested by

no test coverage detected