5#include <gflags/gflags.h>
12 using LIBMV_GFLAGS_NAMESPACE::GetCommandLineOption;
14 std::string verbosity;
15 if (!GetCommandLineOption(
"v", &verbosity)) {
18 return verbosity !=
"0";
22 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
23 google::InitGoogleLogging(argv0);
24 SetCommandLineOption(
"logtostderr",
"1");
26 SetCommandLineOption(
"v",
"0");
28 SetCommandLineOption(
"stderrthreshold",
"0");
29 SetCommandLineOption(
"minloglevel",
"0");
33 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
34 SetCommandLineOption(
"logtostderr",
"1");
36 SetCommandLineOption(
"v",
"2");
38 SetCommandLineOption(
"stderrthreshold",
"0");
39 SetCommandLineOption(
"minloglevel",
"0");
43 using LIBMV_GFLAGS_NAMESPACE::SetCommandLineOption;
45 snprintf(val,
sizeof(val),
"%d", verbosity);
46 SetCommandLineOption(
"v", val);
void libmv_setLoggingVerbosity(int verbosity)
void libmv_startDebugLogging(void)
void libmv_initLogging(const char *argv0)
static bool is_verbosity_set()