Mercurial > hg > orthanc-transfers
comparison Plugin/Plugin.cpp @ 21:7c8dfa752242
improved Orthanc::Logging::Initialize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2020 10:15:56 +0200 |
parents | 17f775299b4a |
children | dfc43678aecb |
comparison
equal
deleted
inserted
replaced
20:17f775299b4a | 21:7c8dfa752242 |
---|---|
614 | 614 |
615 extern "C" | 615 extern "C" |
616 { | 616 { |
617 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 617 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
618 { | 618 { |
619 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2 | |
619 Orthanc::Logging::InitializePluginContext(context); | 620 Orthanc::Logging::InitializePluginContext(context); |
621 #else | |
622 Orthanc::Logging::Initialize(context); | |
623 #endif | |
624 | |
620 assert(DisplayPerformanceWarning()); | 625 assert(DisplayPerformanceWarning()); |
621 | 626 |
622 OrthancPlugins::SetGlobalContext(context); | 627 OrthancPlugins::SetGlobalContext(context); |
623 | 628 |
624 /* Check the version of the Orthanc core */ | 629 /* Check the version of the Orthanc core */ |