24 # define snprintf _snprintf
31 #ifdef WITH_CYCLES_LOGGING
32 using CYCLES_GFLAGS_NAMESPACE::GetCommandLineOption;
34 std::string verbosity;
35 if (!GetCommandLineOption(
"v", &verbosity)) {
38 return verbosity !=
"0";
46 #ifdef WITH_CYCLES_LOGGING
47 using CYCLES_GFLAGS_NAMESPACE::SetCommandLineOption;
49 google::InitGoogleLogging(argv0);
50 SetCommandLineOption(
"logtostderr",
"1");
52 SetCommandLineOption(
"v",
"0");
54 SetCommandLineOption(
"stderrthreshold",
"0");
55 SetCommandLineOption(
"minloglevel",
"0");
63 #ifdef WITH_CYCLES_LOGGING
64 using CYCLES_GFLAGS_NAMESPACE::SetCommandLineOption;
65 SetCommandLineOption(
"logtostderr",
"1");
67 SetCommandLineOption(
"v",
"2");
69 SetCommandLineOption(
"stderrthreshold",
"0");
70 SetCommandLineOption(
"minloglevel",
"0");
76 #ifdef WITH_CYCLES_LOGGING
77 using CYCLES_GFLAGS_NAMESPACE::SetCommandLineOption;
79 snprintf(val,
sizeof(val),
"%d", verbosity);
80 SetCommandLineOption(
"v", val);
88 os <<
"(" << value.
x <<
", " << value.
y <<
")";
94 os <<
"(" << value.
x <<
", " << value.
y <<
", " << value.
z <<
")";
#define CCL_NAMESPACE_END
void util_logging_init(const char *argv0)
std::ostream & operator<<(std::ostream &os, const int2 &value)
static CCL_NAMESPACE_BEGIN bool is_verbosity_set()
void util_logging_verbosity_set(int verbosity)
void util_logging_start()