comparison OrthancServer/Plugins/Samples/ServeFolders/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
414 414
415 extern "C" 415 extern "C"
416 { 416 {
417 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 417 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
418 { 418 {
419 OrthancPlugins::SetGlobalContext(context); 419 OrthancPlugins::SetGlobalContext(context, SERVE_FOLDERS_NAME);
420 Orthanc::Logging::InitializePluginContext(context, SERVE_FOLDERS_NAME);
420 421
421 /* Check the version of the Orthanc core */ 422 /* Check the version of the Orthanc core */
422 if (OrthancPluginCheckVersion(context) == 0) 423 if (OrthancPluginCheckVersion(context) == 0)
423 { 424 {
424 OrthancPlugins::ReportMinimalOrthancVersion(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER, 425 OrthancPlugins::ReportMinimalOrthancVersion(ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER,