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
2
votes
2 answers

How does glog LOG(INFO) << "something" work?

I was trying to source debug (only have windows) glog code. One part which i am unable to unearth was how does LOG(INFO) << "something" move the string into the buffer? From what i could make out it is, LogMessageData::message_text_ which needs…
Shenron
  • 37
  • 1
  • 4
2
votes
1 answer

How to change glog log level at runtime, not compile time?

I'm using the github.com/golang/glog, and want to change the flag stderrthreshold or V-leveled logging at runtime, that is without re-compile the binary and re-run it. I had searched some resource, but all the answers are changes at compile time. Is…
hsiaoairplane
  • 511
  • 4
  • 15
2
votes
1 answer

Install Google glog library without sudo access

I am trying to install Glog 0.3.4 https://github.com/google/glog/releases on my machine even though I don't have sudo access. I ran the following commands: ./configure --prefix=/usr/local make make install which results in the following error $…
Crista23
  • 3,203
  • 9
  • 47
  • 60
2
votes
0 answers

Install fb-python on Linux machine

I am trying to install fb-python library -a bridge between Lua and Python: https://github.com/facebookarchive/fblualib/tree/master/fblualib/python on my Linux machine using the command cd fblualib/fblualib/python luarocks make…
Crista23
  • 3,203
  • 9
  • 47
  • 60
2
votes
0 answers

Multiple definition error using GFLAGS with tcmalloc

~/common/lib/libglog.a(libglog_la-utilities.o): In function `google::LogMessageVoidify::LogMessageVoidify()': ~/glog/glog-0.3.2/src/utilities.cc:80: multiple definition of…
2
votes
1 answer

Prevent failing glog CHECK statement from terminating program

I have a C++ library which uses glog CHECK statements to asset various conditions on runtime. If a CHECK fails, glog terminates the program. My python program needs some functions from this C++ library, so I have written a simple C wrapper for those…
Steve
  • 374
  • 1
  • 4
  • 13
2
votes
0 answers

Caffe Deep Learning build error: "undefined reference to `google::SetVersionString(std::string const&)' "

I'm trying to build Caffe 1.0.0-rc3 on CentOS 6.3. I've tried building Caffe w/both Boost 1.61.0 and Boost 1.5.6 using both GCC 5.2.0 and GCC 4.9.3 and get the same, exact fatal error: CXX/LD -o .build_release/tools/caffe.bin g++…
Will
  • 21
  • 2
2
votes
0 answers

Why CMake changes its mind about glog

In my project, in the "configure" phase my CMake seems to find glog, but in the building phase I receive the error message: cannot find -llibglog It makes no difference if I use sudo apt-get install libgoogle-glog-dev or generate glog from source.…
katang
  • 2,474
  • 5
  • 24
  • 48
2
votes
1 answer

How to change tag 'UNKNOWN' when doing syslog from GLOG?

I am writing syslog using GLOG using GLOG documentation For example I have following code : SYSLOG(INFO)<<"Syslog testing"; but int log file I see Nov 18 16:39:03 xyz UNKNOWN[12807]: Syslog testing Can anybody please tell me Is there any way…
rovy
  • 2,481
  • 5
  • 18
  • 26
2
votes
2 answers

libgflags bad value error for caffe

I've linked all the required libraries and the caffee confige ran smoothly. But when I want to make the library I get this error: /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): relocation R_X86_64_32S against `std::basic_string,…
Arturo
  • 3,679
  • 6
  • 34
  • 43
2
votes
1 answer

Hiding implementation of G3Log

I am trying to use G3Log (a version of the Google logger - glog) to do some logging within a static library. All works very well until I try to bring that static library into a C++/CLI managed wrapper. When I do this, I get the dreaded …
user3072517
  • 513
  • 1
  • 7
  • 21
2
votes
0 answers

c++ log library with Debug Mode Support

google-glog logging library have a Debug Mode in which the log messages are compiled away if NDEBUG is defined for performance reasons. Does Boost.Log have something similar?
nunojpg
  • 505
  • 3
  • 16
2
votes
1 answer

Linking with glog library

I'm trying to use the glog logging library (LINK). In VS2012 (I'm on Windows 8 Professional 64-bit (Japanese)), I create an empty solution with a single main.cpp file like the one in the documentation (LINK). Also I import the glog project inside…
キキジキ
  • 1,443
  • 1
  • 25
  • 44
1
vote
1 answer

Pod installation fails at glog with React Native and Mac M2

My problem I bought my MacBook Pro M2 two weeks ago, and since then, I've been unable to install the pods in my React Native app. (I've been working with React Native for over a year without issues on an M1). The error starts when I run the command…
jvegax
  • 27
  • 5
1
vote
1 answer

Use multiple files for logs using glog

I'd like to use different directories for different connections. Let's say I have connections that are being handled in separate threads/goroutines. I want them to write to different log directories. I can specify -log_dir, but it will write to only…
k1r1t0
  • 465
  • 2
  • 11