Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Samples/DelayedDeletion/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 | f7adfb22e20e |
comparison
equal
deleted
inserted
replaced
5561:0b18690c1935 | 5563:e02cdf358905 |
---|---|
287 | 287 |
288 extern "C" | 288 extern "C" |
289 { | 289 { |
290 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) | 290 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) |
291 { | 291 { |
292 OrthancPlugins::SetGlobalContext(context); | 292 OrthancPlugins::SetGlobalContext(context, ORTHANC_PLUGIN_NAME); |
293 Orthanc::Logging::InitializePluginContext(context); | 293 Orthanc::Logging::InitializePluginContext(context, ORTHANC_PLUGIN_NAME); |
294 | 294 |
295 | 295 |
296 /* Check the version of the Orthanc core */ | 296 /* Check the version of the Orthanc core */ |
297 if (OrthancPluginCheckVersion(context) == 0) | 297 if (OrthancPluginCheckVersion(context) == 0) |
298 { | 298 { |