Mercurial > hg > orthanc-databases
comparison Framework/Plugins/PluginInitialization.cpp @ 521:2ab3d45c0b3c large-queries
merge default -> large-queries
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Thu, 04 Jul 2024 07:44:39 +0200 |
parents | 51a78b3f96bb |
children |
comparison
equal
deleted
inserted
replaced
501:594859656a06 | 521:2ab3d45c0b3c |
---|---|
1 /** | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | 2 * Orthanc - A Lightweight, RESTful DICOM Store |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium | |
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | 7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
7 * | 8 * |
8 * This program is free software: you can redistribute it and/or | 9 * This program is free software: you can redistribute it and/or |
9 * modify it under the terms of the GNU Affero General Public License | 10 * modify it under the terms of the GNU Affero General Public License |
10 * as published by the Free Software Foundation, either version 3 of | 11 * as published by the Free Software Foundation, either version 3 of |
45 bool InitializePlugin(OrthancPluginContext* context, | 46 bool InitializePlugin(OrthancPluginContext* context, |
46 const std::string& pluginName, | 47 const std::string& pluginName, |
47 const std::string& dbms, | 48 const std::string& dbms, |
48 bool isIndex) | 49 bool isIndex) |
49 { | 50 { |
50 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2) | 51 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 4) |
52 Orthanc::Logging::InitializePluginContext(context, pluginName); | |
53 #elif ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 2) | |
51 Orthanc::Logging::InitializePluginContext(context); | 54 Orthanc::Logging::InitializePluginContext(context); |
52 #else | 55 #else |
53 Orthanc::Logging::Initialize(context); | 56 Orthanc::Logging::Initialize(context); |
54 #endif | 57 #endif |
55 | 58 |