# HG changeset patch # User Sebastien Jodogne # Date 1593502108 -7200 # Node ID 17a43659965332c897867841d263238307d2e46e # Parent acfe1ea3206b0e1aa680421f9f136be2722558ec fix diff -r acfe1ea3206b -r 17a436599653 Plugin/Plugin.cpp --- 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)