comparison Plugin/Plugin.cpp @ 33:b9c536bf598b

improved Orthanc::Logging::Initialize()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 10:23:59 +0200
parents 79d871605ffd
children 9bdfa76c8923
comparison
equal deleted inserted replaced
32:79d871605ffd 33:b9c536bf598b
254 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER, 254 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER,
255 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); 255 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER);
256 return -1; 256 return -1;
257 } 257 }
258 258
259 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2
259 Orthanc::Logging::InitializePluginContext(context); 260 Orthanc::Logging::InitializePluginContext(context);
261 #else
262 Orthanc::Logging::Initialize(context);
263 #endif
264
260 OrthancPluginSetDescription(context, "Advanced authorization plugin for Orthanc."); 265 OrthancPluginSetDescription(context, "Advanced authorization plugin for Orthanc.");
261 266
262 try 267 try
263 { 268 {
264 OrthancPlugins::OrthancConfiguration general; 269 OrthancPlugins::OrthancConfiguration general;