Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/ModalityWorklists/Plugin.cpp @ 5563:e02cdf358905
fix plugin init wrt logging
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 23 Apr 2024 10:26:48 +0200 |
parents | 0b18690c1935 |
children | f0dc99bc811c |
comparison
equal
deleted
inserted
replaced
5561:0b18690c1935 | 5563:e02cdf358905 |
---|---|
212 | 212 |
213 extern "C" | 213 extern "C" |
214 { | 214 { |
215 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) | 215 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* c) |
216 { | 216 { |
217 OrthancPlugins::SetGlobalContext(c); | 217 Orthanc::Logging::InitializePluginContext(c, MODALITY_WORKLISTS_NAME); |
218 OrthancPlugins::SetGlobalContext(c, MODALITY_WORKLISTS_NAME); | |
218 | 219 |
219 /* Check the version of the Orthanc core */ | 220 /* Check the version of the Orthanc core */ |
220 if (OrthancPluginCheckVersion(c) == 0) | 221 if (OrthancPluginCheckVersion(c) == 0) |
221 { | 222 { |
222 OrthancPlugins::ReportMinimalOrthancVersion(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, | 223 OrthancPlugins::ReportMinimalOrthancVersion(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, |