Mercurial > hg > orthanc-stone
changeset 1500:6e832ff72a5e
improved Orthanc::Logging::Initialize()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2020 10:29:10 +0200 |
parents | 8e5f69c94fea |
children | 1e381f2596d3 |
files | StoneWebViewer/Plugin/Plugin.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/StoneWebViewer/Plugin/Plugin.cpp Tue Jun 30 07:58:56 2020 +0200 +++ b/StoneWebViewer/Plugin/Plugin.cpp Tue Jun 30 10:29:10 2020 +0200 @@ -163,7 +163,12 @@ ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) { OrthancPlugins::SetGlobalContext(context); + +#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2 Orthanc::Logging::InitializePluginContext(context); +#else + Orthanc::Logging::Initialize(context); +#endif /* Check the version of the Orthanc core */ if (OrthancPluginCheckVersion(context) == 0)