diff OrthancServer/main.cpp @ 1489:1389834e130f

basic logger
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Aug 2015 12:22:08 +0200
parents f967bdf8534e
children 596927722403
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Tue Aug 04 10:54:13 2015 +0200
+++ b/OrthancServer/main.cpp	Tue Aug 04 12:22:08 2015 +0200
@@ -652,8 +652,7 @@
 
     if (boost::starts_with(argv[i], "--logdir="))
     {
-      FLAGS_logtostderr = false;
-      FLAGS_log_dir = std::string(argv[i]).substr(9);
+      Logging::SetTargetFolder(std::string(argv[i]).substr(9));
     }
 
     if (boost::starts_with(argv[i], "--config="))