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

Are there some rules or advises on using calling log in programming?

Programs always generates large volumes of log for trouble shooting. My question is when should programmers use log. For example, when the status changes, a log should be print; or log should be called when calling a function or returning from a…
0
votes
0 answers

Getting caller function line number in glog

I have to implement a logger class, taking a log id, and printing the necessary information, pre-read from xml code. Initially, I have a problem of logging the file name and line number. Before when I used glog in main.cpp, std::map
sayginify
  • 83
  • 1
  • 8
0
votes
1 answer

glog on visual studio 2015

I am trying to build Google glog library on windows using Visual Studio 2015. After adding #include to get around the std::min problem on Windows, I get to 2 main errors (1 repeats a few times) below. 1>c:\glog\glog-0.3.3\src\windows\port.h(117):…
Mike
  • 3,775
  • 8
  • 39
  • 79
0
votes
1 answer

I am trying use vlog inside static lamba giving me error: statement-expressions are not allowed outside funstions nor in template-argument lists

I wrote a global static lambda like the following: static auto x = [] (const std::string& y){ VLOG(3) <<" y:" <
rovy
  • 2,481
  • 5
  • 18
  • 26
0
votes
2 answers

glog verbose logging & Boost program options

I am using boost program options in my code and trying to add verbose logging using glog (google logging library). The problem is that boost captures the command line options and I can not use the --v flag for controlling the verbose logging. Is…
Rosa Gronchi
  • 1,828
  • 15
  • 25
0
votes
1 answer

glog doesn't compile on Ubuntu 12.04

I tried to install "glog" but when I hit "make" the compilation fails with the following Error message: src/logging_unittest.cc:1206:1: error: ‘FlagSaver’ was not declared in this scope src/logging_unittest.cc:1206:1: note: suggested …
mcExchange
  • 6,154
  • 12
  • 57
  • 103
0
votes
1 answer

Redirect Google log (glog) to file

I have a small console application which uses a library (statically linked) that uses glog to cout or cerr for printing the log messages. I want to redirect these messages to file, but using the method specified here doesn't work (Tried it for both…
rkellerm
  • 5,362
  • 8
  • 58
  • 95
0
votes
2 answers

unknown command line flag 'logtostderr'

I am running this SIFT program at this site: https://github.com/sanchom/sjm All the stuffs go well until I run my program: $ python extract_caltech.py --dataset_path=[path_to_your_101_Categories_directory] \ --process_limit [num_processes_to_spawn]…
Phong Nguyen
  • 51
  • 2
  • 8
0
votes
1 answer

Error when compiling Glog

I got an issue when compiling glog by running 'make' after running './configure' Then I got an error: Undefined symbols for architecture x86_64: "testing::internal::StrStreamToString(std::__1::basic_stringstream, std::__1::allocator >)",…
Phong Nguyen
  • 51
  • 2
  • 8
0
votes
1 answer

Linking gtest with glog

Is there a way to get the ouput of gtest in a log file generated by glog ? Ideally it would stream with severity error when tests fail and info otherwise. I could do it manually but I was wondering if this can be done easily with existing tools. I…
vanna
  • 1,552
  • 5
  • 20
  • 35
1 2 3
9
10