Skip to content
Snippets Groups Projects
Commit fcaf2cf3 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Use ConfigurationManager to configure log level in otb::Logger at instaciation time

parent bd7ed780
No related branches found
No related tags found
1 merge request!20Refactor logging for the whole library
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "otbLogger.h" #include "otbLogger.h"
#include "itksys/SystemTools.hxx" #include "itksys/SystemTools.hxx"
#include "otbConfigurationManager.h"
namespace otb namespace otb
{ {
...@@ -37,11 +38,7 @@ Logger::Pointer Logger::Instance() ...@@ -37,11 +38,7 @@ Logger::Pointer Logger::Instance()
Logger::Logger() Logger::Logger()
{ {
#if OTB_DEBUG this->SetPriorityLevel(otb::ConfigurationManager::GetLoggerLevel());
this->SetPriorityLevel(itk::LoggerBase::DEBUG);
#else
this->SetPriorityLevel(itk::LoggerBase::INFO);
#endif
this->SetLevelForFlushing(itk::LoggerBase::CRITICAL); this->SetLevelForFlushing(itk::LoggerBase::CRITICAL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment