Questions tagged [glog]

The glog library implements application-level logging. This library provides logging APIs based on C++-style streams and various helper macros

Google GLOG is hosted on Github.

145 questions
24
votes
2 answers

Setting GLOG_minloglevel=1 to prevent output in shell from Caffe

I'm using Caffe, which is printing a lot of output to the shell when loading the neural net. I'd like to suppress that output, which supposedly can be done by setting GLOG_minloglevel=1 when running the Python script. I've tried doing that using the…
pir
  • 5,513
  • 12
  • 63
  • 101
18
votes
7 answers

C compiler cannot create executables (installing Cocoapods)

While installing RNPermissions and its dependencies I run into an error. Seems to be a problem with my compiler or the package that is being installed. The error: checking whether the C compiler works...…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
16
votes
1 answer

Glog : configure: WARNING: 'missing' script is too old or missing

My question is about how to solve the missing script is too old or missing!! checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for arm-apple-darwin-strip... no checking for…
Selena Rose Gomez
  • 161
  • 1
  • 1
  • 5
16
votes
5 answers

glog flag redefined error

I am using glog flag log_dir in my project. Recently I imported kubernetes library and started getting this runtime panic panic: ./aaa.test flag redefined: log_dir May 16 23:51:35 ecmdev03-core01 docker[26867]: goroutine 1 [running]: May 16 23:51:35…
Smithsonian
  • 173
  • 1
  • 1
  • 6
12
votes
1 answer

Why do I get this error: 'import of module appears within namespace' on xcode with react-native?

I got this react-native project and I had to use use_modular_headers! on Podfile. I suppose I needed that because this pod MercadoPagoSDK is some sort of dynamic library (╯°□°)╯ which I don't really know what that means on iOS development world.…
ofundefined
  • 2,692
  • 2
  • 18
  • 35
11
votes
4 answers

How do I set the log directory of glog from code

Does anyone know how to set/modify the log dir in the golang source code? I want to set the log dir in the soure code, instead of -log_dir= in the cmdline
ZHOU Ling
  • 564
  • 1
  • 7
  • 13
11
votes
5 answers

Change logging directory in Google glog

How can I change the output directory in Google glog? I only found google::SetLogDestination(google::LogSeverity, const char* path) tried it with: google::SetLogDestination(ERROR, "C:\\log\\error.log); google::InitGoogleLogging("Test"); …
leon22
  • 5,280
  • 19
  • 62
  • 100
10
votes
4 answers

How to fix pod install error glog is too old or missing react native ios in windows 10

I wanted to detach expo in my expo project to get the bare react native project after expo detach i run pod install bring me this error that during installing glog that script is too old or is missing [!] C:/Program Files/Git/usr/bin/bash.exe…
Joh Dozen
  • 101
  • 1
  • 4
10
votes
3 answers

glog library (google log) printing out `(unknown)` in stacktrace?

The glog library is printing (unknown) for certain stack frames in a stacktrace. I'm on Ubuntu 18.04 using the standard libgoogle-glog-dev package: $ cat > t.cc #include void h() { LOG(FATAL) << "test"; } void g() { h(); } void f()…
Andrew Tomazos
  • 66,139
  • 40
  • 186
  • 319
10
votes
1 answer

What does "InitGoogleLogging" do?

I've been modifying an example C++ program from the Caffe deep learning library and I noticed this code on line 234 that doesn't appear to be referenced again. ::google::InitGoogleLogging(argv[0]); The argument provided is a prototxt file which…
Jack Simpson
  • 1,681
  • 3
  • 30
  • 54
9
votes
5 answers

Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

I'm testing React Native 0.56.0-rc.2 on Mac OS Mojave and Xcode 10. Running: react-native init TestProject --version="0.56.0-rc.2" cd TestProject npm run start react-native run-ios Which generated some long errors. Entering Xcode gave me a failure…
Wes Souza
  • 601
  • 2
  • 8
  • 17
8
votes
2 answers

Ceres Solver: unable to disable logging (google glog)

I'm using ceres solver for a project, and when I call the ceres::Solve function, the library starts to output lines such as this one: iterative_schur_complement_solver.cc:88 No parameter blocks left in the schur complement. wall_time.cc:74…
Esparver
  • 1,515
  • 1
  • 15
  • 28
7
votes
2 answers

how to print logs into only one file by google glog

I'm now using google glog. When I'm debugging the program, every time the process restart, a new log file generated, identified by the new pid as filename's sufix, like…
libgcc
  • 153
  • 3
  • 7
7
votes
1 answer

Google glog rolling files

I'm want to use google-glog (logging library) in my C++\Linux project. And one of the most important feature for me, it's rolling files. I.e. when log file size become more than fixed threshold, creates new log file and old was removed. Same for…
Artem Agasiev
  • 175
  • 1
  • 8
6
votes
1 answer

Cannot find 'gflags/gflags.h' while building library OSX

I'm trying to build the library which included 'gflags/gflags.h' and am having trouble getting it to find. I installed gflags and glog with homebrew. CMake output says: -- Found installed version of gflags: /usr/local/lib/cmake/gflags -- Detected…
xfarxod
  • 123
  • 2
  • 6
1
2 3
9 10