changeset 32:17a436599653

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 09:28:28 +0200
parents acfe1ea3206b
children 0b852f72634b
files Plugin/Plugin.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Tue Jun 30 07:55:18 2020 +0200
+++ b/Plugin/Plugin.cpp	Tue Jun 30 09:28:28 2020 +0200
@@ -130,7 +130,16 @@
   ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
   {
     OrthancPlugins::SetGlobalContext(context);
+
+#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE)
+#  if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2)
+    Orthanc::Logging::InitializePluginContext(context);
+#  else
     Orthanc::Logging::Initialize(context);
+#  endif
+#else
+    Orthanc::Logging::Initialize(context);
+#endif
 
     /* Check the version of the Orthanc core */
     if (OrthancPluginCheckVersion(context) == 0)