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
0
votes
1 answer

how do I change facility in glog from the default user facility?

I see that glog messages are getting logged with 'user' facility. Where does it set and how do I change it dynamically from my application?
0
votes
1 answer

How to write log to differnt logfile in one process use GLOG

when I used GLog for logfile, I want to write my glog file to differnt logfile like log4j,but It seems like that the Glog don't support this, How can I do and can I init two glog in one function, please help
David
  • 103
  • 1
  • 6
0
votes
1 answer

Can glog (c++) print line number in its stacktrace?

glog (c++)'s failure signal handler can print stacktrace on segfault etc (see here). Can the stacktrace include line number as well? Edit: Even if I use LOG(FATAL), the stacktrace does not have line number. *** Check failure stack trace: *** @ …
bill
  • 650
  • 8
  • 17
0
votes
0 answers

understanding the google glog macro

When I read the source code of google glog, I found the following macro confusing to me: #define LOG_IF(severity, condition) \ static_cast(0), \ !(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity) What's…
Tristan
  • 9
  • 2
0
votes
1 answer

React-Native can't compile for release on Android test-driver

I don't understand but since a few days, I can't compile anymore my app on Android. I checked lots of post about it : https://github.com/facebook/react-native/issues/14464 https://github.com/facebook/react-native/issues/14417 And they all say…
Clad Clad
  • 2,653
  • 1
  • 20
  • 32
0
votes
2 answers

Why am I unable to use glog due to incorrect hash?

Related to my question on ReactNative init setup process being awful, I am unable to download glog due to an incorrect hash. Does anyone know what is going on here? How can I fix this so that I can use react-native properly? I have tried clearing my…
Scott Skiles
  • 3,647
  • 6
  • 40
  • 64
0
votes
1 answer

How to disable the stack trace in c++ glog?

I applied Glog to output some runtime information in my code, and I want to disable the stack trace function to protect the detail of the code. But I find the Glog is default to track the stack trace and log it to std err or log file, and there is…
Patrick
  • 181
  • 1
  • 1
  • 11
0
votes
0 answers

Trouble building and installing glog with CMake

I'm using Google glog as part of a larger project, and need to install and build it out of source using CMake on Linux. I am fairly new at using CMake and simply wish to build and use it for logging in the main project. This is what I use to install…
Noel Bahdy
  • 29
  • 4
0
votes
0 answers

Where do Kubernetes components log output?

Attempting to Debug why AzureDisk won't always mount. Logs for the pod show a timeout, but Kubernetes pkg components have glog calls. Where do these get logged to and how can I see them? Example: azure_managedDiskController.go if err != nil { …
Highway of Life
  • 22,803
  • 16
  • 52
  • 80
0
votes
0 answers

Building Google glog with CMake on Windows (failed)

I need the glog library (https://github.com/google/glog) for a C++ project (Windows 10, Qt 5.10) and try to build it from sources using CMake. The CMake configuration process was succesful, the path to gflags is also set correctly. After…
golden96371
  • 350
  • 6
  • 19
0
votes
2 answers

glog throws invalid token at start of a preprocessor expression '@'

I am using Bazel importing glog in the workspace as: git_repository( name = "com_github_glog_glog", commit = "3106945d8d3322e5cbd5658d482c9ffed2d892c0", remote = "https://github.com/google/glog.git", ) bind( name = "glog", …
ElfsЯUs
  • 1,188
  • 4
  • 14
  • 34
0
votes
1 answer

GLOG multithread log

I want to use Glog lib to log my application logs. My application is multithreaded. As Suggested in glog i have supposed to use RAW_LOG for thread safety. Here is my example code. #include "stdafx.h" #define GLOG_NO_ABBREVIATED_SEVERITIES …
0
votes
1 answer

how to compile glog using mingw on linux to generate glog dlls

I want to generate glog c++ dlls for windows using mingw on linux without using cmake or visual studio. Can anybody tell me the steps for doing so...Thanks in advance.
0
votes
0 answers

How to build Glog successfully on VS2015 or cmake?

I am using windows 10 x64 visual studio 2015, I have downloaded opencv successfully and want to download the sfm module, from the libraries that I need to download is Glog, this is the only library presenting a big issue and I tried many ways but it…
Farah
  • 1
0
votes
0 answers

QProcess::readyReadStandardError() signal not emit until the process closed?

I'm trying to redirect other process's stdout and stderr to my Qt GUI app. But I notice that QProcess::readyReadStandardError() signal only emitted (once) when the other process is closing. Is there something wrong in my code? void…
ricky
  • 2,058
  • 4
  • 23
  • 49