4 #include <gflags/gflags.h>
11 using LIBMV_GFLAGS_NAMESPACE::GetCommandLineOption;
13 std::string verbosity;
14 if (!GetCommandLineOption(
"v", &verbosity)) {
17 return verbosity !=
"0";
21 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
22 google::InitGoogleLogging(argv0);
23 SetCommandLineOption(
"logtostderr",
"1");
25 SetCommandLineOption(
"v",
"0");
27 SetCommandLineOption(
"stderrthreshold",
"0");
28 SetCommandLineOption(
"minloglevel",
"0");
32 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
33 SetCommandLineOption(
"logtostderr",
"1");
35 SetCommandLineOption(
"v",
"2");
37 SetCommandLineOption(
"stderrthreshold",
"0");
38 SetCommandLineOption(
"minloglevel",
"0");
42 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
44 snprintf(val,
sizeof(val),
"%d", verbosity);
45 SetCommandLineOption(
"v", val);
void libmv_setLoggingVerbosity(int verbosity)
void libmv_startDebugLogging(void)
void libmv_initLogging(const char *argv0)
static bool is_verbosity_set()