comparison 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
comparison
equal deleted inserted replaced
101:428784e59dcd 102:7593b57dc1bf
19 19
20 20
21 #include "OrthancRestApi.h" 21 #include "OrthancRestApi.h"
22 22
23 #include <stdio.h> 23 #include <stdio.h>
24 #include <glog/logging.h>
24 25
25 #include "../Core/HttpServer/EmbeddedResourceHttpHandler.h" 26 #include "../Core/HttpServer/EmbeddedResourceHttpHandler.h"
26 #include "../Core/HttpServer/FilesystemHttpHandler.h" 27 #include "../Core/HttpServer/FilesystemHttpHandler.h"
27 #include "../Core/HttpServer/MongooseServer.h" 28 #include "../Core/HttpServer/MongooseServer.h"
28 #include "DicomProtocol/DicomServer.h" 29 #include "DicomProtocol/DicomServer.h"
89 90
90 91
91 92
92 93
93 94
94
95
96 int main(int argc, char* argv[]) 95 int main(int argc, char* argv[])
97 { 96 {
97 // Initialize Google's logging library.
98 FLAGS_logtostderr = true;
99 google::InitGoogleLogging("Orthanc");
100
98 try 101 try
99 { 102 {
100 if (argc >= 2) 103 if (argc >= 2)
101 { 104 {
102 OrthancInitialize(argv[1]); 105 OrthancInitialize(argv[1]);