diff Common/FileSystemStorage.cpp @ 152:d62f52be1943

use Orthanc frameworking for logging
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Jun 2024 11:22:57 +0200
parents 3c7e0374f28e
children
line wrap: on
line diff
--- a/Common/FileSystemStorage.cpp	Fri Jun 21 10:29:52 2024 +0200
+++ b/Common/FileSystemStorage.cpp	Fri Jun 21 11:22:57 2024 +0200
@@ -21,7 +21,9 @@
 #include "FileSystemStorage.h"
 #include "BaseStorage.h"
 
+#include <Logging.h>
 #include <SystemToolbox.h>
+
 #include <boost/filesystem.hpp>
 #include <boost/filesystem/fstream.hpp>
 
@@ -143,7 +145,7 @@
   }
   catch(Orthanc::OrthancException& e)
   {
-    OrthancPlugins::LogError(GetNameForLogs() + ": error while deleting object " + std::string(uuid) + ": " + std::string(e.What()));
+    LOG(ERROR) << GetNameForLogs() << ": error while deleting object " << uuid << ": " << e.What();
   }
 
 }