diff OrthancFramework/Sources/Logging.h @ 4275:d7a50b7b8466

Dynamically access and/or change the verbosity of logging categories with the REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Nov 2020 14:41:27 +0100
parents 0034f855c023
children 0923247e69f6
line wrap: on
line diff
--- a/OrthancFramework/Sources/Logging.h	Tue Nov 03 12:28:25 2020 +0100
+++ b/OrthancFramework/Sources/Logging.h	Tue Nov 03 14:41:27 2020 +0100
@@ -100,9 +100,11 @@
     ORTHANC_PUBLIC bool LookupCategory(LogCategory& target,
                                        const std::string& category);
 
-    ORTHANC_PUBLIC size_t GetCategoriesCount();
+    ORTHANC_PUBLIC unsigned int GetCategoriesCount();
 
-    ORTHANC_PUBLIC const char* GetCategoryName(size_t i);
+    ORTHANC_PUBLIC const char* GetCategoryName(unsigned int i);
+
+    ORTHANC_PUBLIC const char* GetCategoryName(LogCategory category);
 
     ORTHANC_PUBLIC void SetTargetFile(const std::string& path);