20 #include <gflags/gflags.h>
27 using LIBMV_GFLAGS_NAMESPACE::GetCommandLineOption;
29 std::string verbosity;
30 if (!GetCommandLineOption(
"v", &verbosity)) {
33 return verbosity !=
"0";
37 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
38 google::InitGoogleLogging(argv0);
39 SetCommandLineOption(
"logtostderr",
"1");
41 SetCommandLineOption(
"v",
"0");
43 SetCommandLineOption(
"stderrthreshold",
"0");
44 SetCommandLineOption(
"minloglevel",
"0");
48 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
49 SetCommandLineOption(
"logtostderr",
"1");
51 SetCommandLineOption(
"v",
"2");
53 SetCommandLineOption(
"stderrthreshold",
"0");
54 SetCommandLineOption(
"minloglevel",
"0");
58 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
60 snprintf(val,
sizeof(val),
"%d", verbosity);
61 SetCommandLineOption(
"v", val);
void libmv_setLoggingVerbosity(int verbosity)
void libmv_startDebugLogging(void)
void libmv_initLogging(const char *argv0)
static bool is_verbosity_set()