comparison StoneWebViewer/Plugin/Plugin.cpp @ 1500:6e832ff72a5e

improved Orthanc::Logging::Initialize()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 10:29:10 +0200
parents fb74ed5d8c22
children dd1d1cc0575d
comparison
equal deleted inserted replaced
1499:8e5f69c94fea 1500:6e832ff72a5e
161 extern "C" 161 extern "C"
162 { 162 {
163 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 163 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
164 { 164 {
165 OrthancPlugins::SetGlobalContext(context); 165 OrthancPlugins::SetGlobalContext(context);
166
167 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2
166 Orthanc::Logging::InitializePluginContext(context); 168 Orthanc::Logging::InitializePluginContext(context);
169 #else
170 Orthanc::Logging::Initialize(context);
171 #endif
167 172
168 /* Check the version of the Orthanc core */ 173 /* Check the version of the Orthanc core */
169 if (OrthancPluginCheckVersion(context) == 0) 174 if (OrthancPluginCheckVersion(context) == 0)
170 { 175 {
171 char info[1024]; 176 char info[1024];