diff OrthancFramework/Sources/DicomNetworking/DicomServer.cpp @ 4284:756126cd2219

moving all logs from DicomNetworking folder into the "dicom" category
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 04 Nov 2020 15:01:47 +0100
parents bf7b9edf6b81
children f5d44e30b429
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomServer.cpp	Wed Nov 04 14:48:52 2020 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/DicomServer.cpp	Wed Nov 04 15:01:47 2020 +0100
@@ -48,7 +48,7 @@
 
   void DicomServer::ServerThread(DicomServer* server)
   {
-    LOG(INFO) << "DICOM server started";
+    CLOG(INFO, DICOM) << "DICOM server started";
 
     while (server->continue_)
     {
@@ -65,11 +65,11 @@
       }
       catch (OrthancException& e)
       {
-        LOG(ERROR) << "Exception in the DICOM server thread: " << e.What();
+        CLOG(ERROR, DICOM) << "Exception in the DICOM server thread: " << e.What();
       }
     }
 
-    LOG(INFO) << "DICOM server stopping";
+    CLOG(INFO, DICOM) << "DICOM server stopping";
   }
 
 
@@ -95,7 +95,7 @@
   {
     if (continue_)
     {
-      LOG(ERROR) << "INTERNAL ERROR: DicomServer::Stop() should be invoked manually to avoid mess in the destruction order!";
+      CLOG(ERROR, DICOM) << "INTERNAL ERROR: DicomServer::Stop() should be invoked manually to avoid mess in the destruction order!";
       Stop();
     }
   }
@@ -113,8 +113,8 @@
 
   void DicomServer::SetAssociationTimeout(uint32_t seconds)
   {
-    LOG(INFO) << "Setting timeout for DICOM connections if Orthanc acts as SCP (server): " 
-              << seconds << " seconds (0 = no timeout)";
+    CLOG(INFO, DICOM) << "Setting timeout for DICOM connections if Orthanc acts as SCP (server): " 
+                      << seconds << " seconds (0 = no timeout)";
 
     Stop();
     associationTimeout_ = seconds;
@@ -156,7 +156,7 @@
             isdigit(aet[i]) ||
             (aet[i] >= 'A' && aet[i] <= 'Z')))
       {
-        LOG(WARNING) << "For best interoperability, only upper case, alphanumeric characters should be present in AET: \"" << aet << "\"";
+        CLOG(WARNING, DICOM) << "For best interoperability, only upper case, alphanumeric characters should be present in AET: \"" << aet << "\"";
         break;
       }
     }
@@ -392,7 +392,7 @@
       OFCondition cond = ASC_dropNetwork(&pimpl_->network_);
       if (cond.bad())
       {
-        LOG(ERROR) << "Error while dropping the network: " << cond.text();
+        CLOG(ERROR, DICOM) << "Error while dropping the network: " << cond.text();
       }
     }
   }