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
1
vote
0 answers

Can Google glog notify the application of full disk?

I would like to be able to respond (possibly simply by dying) to the glog being unable to log to disk due to a full disk. Is there any way to convince glog to report this condition to the program using it?
Patrick
  • 1,894
  • 3
  • 15
  • 17
1
vote
0 answers

Google glog crashes silently on OS X

I am programming a project in C++ on OS X. For various reasons (compatibility, OpenMP, etc.) it has to be compiled using g++. I installed g++-4.9 using homebrew. I would really like to use the google logging library, but I keep getting silent…
HdM
  • 169
  • 1
  • 11
1
vote
1 answer

why cmake pick the wrong library?

I have this line in my cmake to pick glog library: find_library(GLOG_LIBRARY libglog $ENV{GLOG_DIR}/x64/Release) message(${GLOG_LIBRARY}) and in the release folder I have these files: 03/03/2015 15:00 308,736 libglog.dll 03/03/2015 …
mans
  • 17,104
  • 45
  • 172
  • 321
1
vote
0 answers

Google::glog throws unspecified iostream_category exception when trying to log

So this is my code I am trying to run: int main(int argc, char* argv[]) { try { google::InitGoogleLogging(argv[0]); boost::asio::io_service io_service; LOG(INFO) << "Program started"; Server s(io_service,…
Adrian
  • 19,440
  • 34
  • 112
  • 219
0
votes
0 answers

How do I get glog to use gflags when I'm using them as http_archives?

I have a Bazel WORKSPACE that looks like this: load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "com_github_gflags_gflags", sha256 =…
Bob
  • 1
0
votes
1 answer

Glog no INFO level logs printed to terminal

Glog no INFO level terminal output Logger4me::Logger4me(const char* app_name) { **google::InitGoogleLogging(app_name);** boost::filesystem::path currentPath = boost::filesystem::current_path(); boost::filesystem::path log_folder =…
0
votes
1 answer

error expected primary-expression using glog

I have a logging facility which is basically a wrapper around glog + some utility functions which I regularly need. This code is in use for quite some time and compiles on different platforms (Intel Mac, Ubuntu, Debian) and compilers (gcc, clang)…
benjist
  • 2,740
  • 3
  • 31
  • 58
0
votes
0 answers

Is find_package(glog) not needed in cmake compiling?

I'm now trying to use glog in my project. By following the rules in google/glog, I designed a log system. In the compiling stage, I wrote down my CMakeLists.txt as below: cmake_minimum_required(VERSION 3.0.2) project(glog_system) …
0
votes
2 answers

`glog` example is not showing output as expected

I am trying to understand glog and therefore trying to run the example code on their github page. I have installed glog (version - 0.6.0) and its dependency gflags (version - 2.2) on my mac OS (10.15.7) I compile the example below #include…
Satya
  • 1,708
  • 1
  • 15
  • 39
0
votes
1 answer

How to make glog output not fill 0 before number?

When I use glog to print an Eigen matrix in console, I found the output format has difference when using std::cout against using LOG(INFO). Here is the source code, in which 'sophus_R' is a 3x3 matrix. LOG(INFO) << "using glog, sophus_R is:\n" <<…
0
votes
0 answers

OpenCV build error : undefined reference to `google::InitVLOG3__

System configuration OS : Ubuntu 18.04 opencv version : 4.2.0 opencv_contrib version : 4.2.0 I am trying to build OpenCV 4.2.0 from source and I am facing the following error : [ 78%] Built target multiview Consolidate compiler generated…
0
votes
1 answer

What is the equivalent of ios-configure-glog.sh for flipper-glog?

I had a problem with glog in a react native app ("machine not recognised" - related to the build process getting confused about my macbook's M1 architecture). I fixed that by editing the build script in node_modules to copy in a newer version of…
iftheshoefritz
  • 5,829
  • 2
  • 34
  • 41
0
votes
2 answers

How to split log file in using glog(github.com/golang/glog)

Because my server may run for a long time, the log file will be too large.Is there any way to cut logs according to size or time?
CharmCcc
  • 113
  • 11
0
votes
1 answer

Macro expansion which converts Google Logger print format(i.e. <<) to spdlog print format

I have tons of code which uses Google Logger style of log printing: LOG(ERROR) << "AAAA" <<< 123; And currently I need to replace Google logger by spdlog logger, which supports python like format: logger->error("{} {}", "param1", 123); Of course I…
user3518295
  • 180
  • 3
  • 14
0
votes
1 answer

How to use glog with bazel?

I was able to install glog with: brew install glog Then I can successfully compile and use it using g++: g++ src/main/main_logger.cc -std=c++17 -lglog How can I do this with bazel? I get this error: fatal error: 'glog/logging.h' file not…
Ari
  • 7,251
  • 11
  • 40
  • 70