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

Disable glog's "LOG(INFO)" logging

I'm trying to optimize my c++ program. It uses caffe. When executing my program, caffe outputs around 1GB (!) of info logs every 15 mins. I suspect this impacts efficiency significantly. But I haven't found how to turn logging off. In this question…
benk
  • 377
  • 1
  • 4
  • 13
4
votes
3 answers

logging with glog is not working properly

i am using glog for logging purpose when i use : LOG(INFO) << "something"; it works as expected but when i use multiple logs like below it will not log until the program is stopped .when programm stops it will log everything as expected. LOG(INFO)…
kshitij singh
  • 363
  • 2
  • 10
  • 19
4
votes
2 answers

GLOG saves to file only one, first message

I'm using glog library, but I have problem with printing more than one message to file. When I use this code: std::string appPath = TUtil::ExePath() + "logs\\"; google::SetLogDestination(google::GLOG_INFO, std::string(appPath +…
Piotr Chojnacki
  • 6,837
  • 5
  • 34
  • 65
3
votes
1 answer

Log files not in log directory for golang

I am trying to log my info and error logs into the log/dir directory in my project instead of writing it to the stderr.I tried the solution given here:How do I set the log directory of glog from code but this isn't creating log files in my…
needhelp
  • 31
  • 3
3
votes
1 answer

Upgraded React Native and now getting glog/logging.h file not found

I've upgraded React Native from 0.52 to 0.59 I'm aware this is a massive jump but I thought might as well go for it, and now getting glog/logging.h file not found. I'm also aware that there are similar questions on here. But I've literally tried…
arled
  • 2,577
  • 6
  • 27
  • 49
3
votes
1 answer

When Google Logging Library is called by Python, how can we define the location of the log file?

I am now calling a C++ library in Python with the help of CFFI. This C++ library uses Google Logging Library for logging message. I know that when I set up a C++ application that calls the library, I can easily control where the log file is…
feelfree
  • 11,175
  • 20
  • 96
  • 167
3
votes
1 answer

Google glog prints no stack trace

I'm using the google glog library for my C++ program. I have used the glog library before, so I know that it should print out the stack trace when there is a CHECK failure. But it does not print any stack trace for my program: #include…
user2100910
  • 327
  • 3
  • 12
3
votes
1 answer

How to set log level in go test?

Hi I am running my unit tests by using: godep go test -v -run TestMyCode, but I did not find a way to show my info logs in my tests: glog.V(4).Infof("Adding new pods from source %s : %v", source, update.Pods) Is it possible?
harryz
  • 4,980
  • 6
  • 31
  • 34
3
votes
1 answer

How to print a full double precision by google glog

I am try to print a double variable a like this. double a; //some statements for a LOG(INFO) << a; How can I print a using full precision?
chain ro
  • 737
  • 2
  • 10
  • 21
3
votes
2 answers

caffe recompile with -fPIC libglog.a error

I'm trying to install Caffe on Debian, but when i do make all i get this error: /usr/bin/ld: /usr/local/lib/libglog.a(logging.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with…
user2071581
  • 183
  • 2
  • 13
3
votes
2 answers

GLOG - no output file log is created

i am tryng to implement the GLOG lib in my project, but i am only getting console outputs, and i cannot allow to create the file log with the severity asociated, here is my code: i am developing for linux (ubuntu) #include int…
Ricardo_arg
  • 520
  • 11
  • 28
3
votes
1 answer

C++ Logger Performance and Portability

I'm writing a C++ application, that I have to deploy to a server in the future (maybe as a node.js C++ module). I really need a logging library that help me during the development process. Now I'm using log4cxx, but I need the code to be portable,…
Pablosproject
  • 1,374
  • 3
  • 13
  • 33
2
votes
1 answer

Set logging level in glog package

How can I set logging level for golang glog package to ERROR. example.go: package main import ( "github.com/golang/glog" "flag" ) func main() { flag.Parse() glog.Info("Info level") glog.Error("Error level") …
Abhay Gupta
  • 786
  • 12
  • 30
2
votes
1 answer

Error installing glog CocoaPod "configure: error: C preprocessor "/lib/cpp" fails sanity check"

When running pod install I am getting an error "configure: error: C preprocessor "/lib/cpp" fails sanity check" I have tried manually exporting CXXCPP to location of GCC, I've tried symlinking CPP to GCC. I've reinstalled Xcode. I've run…
Matt Hudson
  • 7,329
  • 5
  • 49
  • 66
2
votes
0 answers

How to fix error on glog install on Windows when setting up expo ios

Error on installing glog when running pod install on Windows 10. I am trying to use Expo to test an iOS app from Windows. In the error log I am finding Syntax error: newline unexpected (expecting ")") is being raised when running…
1 2
3
9 10