| 100 | } |
| 101 | |
| 102 | std::string GetLogTarget() { |
| 103 | if (FLAGS_logtostderr) { |
| 104 | return "stderr"; |
| 105 | } |
| 106 | |
| 107 | #if COLMAP_GLOG_HAS_STDOUT_SUPPORT |
| 108 | if (FLAGS_logtostdout) { |
| 109 | return "stdout"; |
| 110 | } |
| 111 | #endif |
| 112 | |
| 113 | if (FLAGS_alsologtostderr) { |
| 114 | return "stderr_and_file"; |
| 115 | } |
| 116 | |
| 117 | return "file"; |
| 118 | } |
| 119 | |
| 120 | void ApplyLogOptions(const std::string& log_target, |
| 121 | int verbosity, |