diff OrthancServer/main.cpp @ 102:7593b57dc1bf

switch to google log
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 03 Oct 2012 16:28:13 +0200
parents a70bb32802ae
children a6e41de88a53
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Wed Oct 03 11:44:46 2012 +0200
+++ b/OrthancServer/main.cpp	Wed Oct 03 16:28:13 2012 +0200
@@ -21,6 +21,7 @@
 #include "OrthancRestApi.h"
 
 #include <stdio.h>
+#include <glog/logging.h>
 
 #include "../Core/HttpServer/EmbeddedResourceHttpHandler.h"
 #include "../Core/HttpServer/FilesystemHttpHandler.h"
@@ -91,10 +92,12 @@
 
 
 
-
-
 int main(int argc, char* argv[]) 
 {
+  // Initialize Google's logging library.
+  FLAGS_logtostderr = true;
+  google::InitGoogleLogging("Orthanc");
+
   try
   {
     if (argc >= 2)