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
6
votes
4 answers

React native glog iOS : Unknown type name '_START_GOOGLE_NAMESPACE_'

I already built an android project of react native which is working fine. I then started with iOS part. I am using react-native-cli: 2.0.1 react-native: 0.60.4 and Xcode 10 and Mac OS Mojave The default pod file had some issues installing glog It…
Nilkamal Gotarne
  • 335
  • 5
  • 16
6
votes
1 answer

How to expect program exit in gtest?

I'm testing some code that uses CHECK from glog and I'd like to test that this check fails in certain scenarios. My code looks like: void MyClass::foo() { // stuff... // It's actually important that the binary gets aborted if this flag is false …
Paymahn Moghadasian
  • 9,301
  • 13
  • 56
  • 94
6
votes
0 answers

Is it possible to use glog/vlog and output to multiple log files?

We are using Google Logger (glog/vlog C++) to output debug information. However, we would like to output performance information to a separate log file using glog. Is this possible? An example of a standard call to the logger is: VLOG(1) <<…
GregH
  • 12,278
  • 23
  • 73
  • 109
6
votes
2 answers

Are google log entries wrapped by a mutex?

Using Google's logging library (glog-0.3.2), are the individual entries sent to the log wrapped by a mutex? That is, can other entries corrupt the entry currently being saved? I guess that translates to: is glog threadsafe? And if the logger is set…
Wes Miller
  • 2,191
  • 2
  • 38
  • 64
6
votes
1 answer

Freeze on __write_nocancel

So I have a pretty substantial program which is freezing sporadically. This program uses Qt, open scene graph, and google logging. This freeze happens mid printing in the google logging. The program itself is printing a ton of debugging information.…
David Mokon Bond
  • 1,576
  • 2
  • 18
  • 42
5
votes
1 answer

Module-wise verbose logging in Google glog

I'm using Google glog for logging. I have a file in a directory with path dir/file.cc. I want to enable verbose logging level 5 just in this file. So I export GLOG_vmodule="file=5" into the environment and then run the program. But glog still…
Anand
  • 7,654
  • 9
  • 46
  • 60
5
votes
2 answers

Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)

I am trying to install openpose in Ubuntu 20.04 using CMAKE and I get the following error: Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY) I am following the instructions here (unfortunately, the screenshots are not available but I…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
5
votes
3 answers

Can I set a global logging level in Glog?

In Java, which is the language in which I normally work, a common feature of logging libraries is the ability to set a "global" logging level - eg emit to the log file if the level is WARNING or above, otherwise not, regardless of the module where…
0xbe5077ed
  • 4,565
  • 6
  • 35
  • 77
5
votes
1 answer

VLOG doesn't work for Google Logging Library (glog)

My purpose is simple: to somehow see the logs printed by VLOG(5), which is provided by the glog library. I have the following code: google::InitGoogleLogging(argv[0]); google::ParseCommandLineFlags(&argc, &argv, true); FLAGS_logtostderr = 1; FLAGS_v…
zzy
  • 751
  • 1
  • 13
  • 25
5
votes
2 answers

Building Google glog with CMake on Linux

I want to build Google glog with CMake as part of bigger project (solution, in words of Visual Studio). What I want to have as a result: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX:PATH=xxx {MAIN CMakeLists.txt…
grisha
  • 1,247
  • 1
  • 14
  • 20
5
votes
1 answer

Configure google glog and gflags for c++

I've been trying to configure the google logging library glog for my C++ application but I can't find any information about how to actually get it to work, and the error messages are less than helpful. This is the example code I'm trying to execute,…
user3235200
  • 249
  • 3
  • 4
  • 7
5
votes
2 answers

Autotools/libtool link library with libstdc++ despite -stdlib=libc++ option passed to configure

I'm trying to build google-glog on Mac OS X 10.8, using following options: ./configure CXX='clang++' CXXFLAGS='-std=c++11 -stdlib=libc++' Despite that the library gets linked with libstdc++. Why, and how to fix this?
rincewind
  • 1,103
  • 8
  • 29
4
votes
0 answers

Cannot install "glog" for React Native app

I am stuck trying to run pod install to get my new React-Native App to build. I've had a look online - my xcode-select command is set correctly which seems to be the main solutions to this problem. Here is my output, does anyone have any…
Sarah Macey
  • 196
  • 1
  • 12
4
votes
0 answers

Is there a way to change the log format of GLOG?

I am working with GLOG in one of our components. My company enforce a specific log format. Is there a way to change the GLOG log format? (couldn't find any API for that)
amigal
  • 517
  • 3
  • 8
  • 21
4
votes
2 answers

Installing GLog on Windows

I need to install GLog for using the SFM module in OpenCV. I already found the link for the source code but I don't really know how to install it on my system as I dont have much experience with it. There is also a "README.windows" file but it…
Mirnyy
  • 207
  • 5
  • 11
1
2
3
9 10