diff --git a/Modules/Core/Common/include/otbConfigurationManager.h b/Modules/Core/Common/include/otbConfigurationManager.h index 4ac1dcc3728f8bb00d770fced767d349250ced2d..7b32b3dc729e0ae5bd974ac6f6786ce0e8d4493d 100644 --- a/Modules/Core/Common/include/otbConfigurationManager.h +++ b/Modules/Core/Common/include/otbConfigurationManager.h @@ -84,7 +84,25 @@ public: */ static RAMValueType GetMaxRAMHint(); - + /** + * Logger level controls the level of logging that OTB will output. + * + * This is used to set-up the otb::Logger class. + * + * If OTB_LOGGER_LEVEL environment variable is set to one of DEBUG, + * INFO, WARNING, CRITICAL or FATAL, the logger level will be + * set accordingly. + * + * Priority is DEBUG < INFO < WARNING < CRITICAL < FATAL. + * + * Only messages with a higher priority than the logger level will + * be displayed. + * + * By default (if OTB_LOGGER_LEVEL is not set or can not be + * decoded), level is DEBUG in Debug or RelWithDebInfo builds, and + * WARNING otherwise. + * + */ static itk::LoggerBase::PriorityLevelType GetLoggerLevel();