Browse Source

utility/initialize: Added a function to read the current loglevel.

tempestpy_adaptions
Tim Quatmann 5 years ago
parent
commit
99991d344e
  1. 4
      src/storm/utility/initialize.cpp
  2. 5
      src/storm/utility/initialize.h

4
src/storm/utility/initialize.cpp

@ -34,6 +34,10 @@ namespace storm {
// Intentionally left empty.
}
l3pp::LogLevel getLogLevel() {
return l3pp::Logger::getRootLogger()->getLevel();
}
void setLogLevel(l3pp::LogLevel level) {
l3pp::Logger::getRootLogger()->setLevel(level);
if (level <= l3pp::LogLevel::DEBUG) {

5
src/storm/utility/initialize.h

@ -19,6 +19,11 @@ namespace storm {
*/
void cleanUp();
/*!
* Gets the global log level
*/
l3pp::LogLevel getLogLevel();
/*!
* Set the global log level
*/

Loading…
Cancel
Save