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

Could NOT find LMDB (missing: LMDB_INCLUDE_DIR LMDB_LIBRARIES)

Windows 10 Visual Studio 14 I am trying to build a c++ code based on this github repository. However, when I try to generate lib files in Cmake I get this error: How can I make it recognize LMDB, GFALGS, and GLOG?
Hadi GhahremanNezhad
  • 2,377
  • 5
  • 29
  • 58
1
vote
1 answer

Trying to use glog on windows results undefined references

I am trying glog. I have downloaded last version (0.3.5) I try to compile with cmake. What I have done is: I have compiled as static library with options BUILD_TESTING = OFF and WITH_GFLAGS = OFF and used libglog.a perfectly on linux Now I try on…
Mert Mertce
  • 1,049
  • 7
  • 34
1
vote
1 answer

Failure compiling glog with gflags support using Bazel

I'm getting a failure when I try to compile glog with gflags support using Bazel. A github repo reproducing this problem and showing the compilation error message is here: https://github.com/dionescu/bazeltrunk.git I suspect that the problem occurs…
1
vote
0 answers

CHECK failed while writing custom loss layer in Caffe

I get the following error while running a test case for a custom built loss function in caffe. This loss function uses Reshape layer on the bottom blob to this layer (This is mentioned in the LayerSetUp() method of the Custom loss…
harman
  • 333
  • 2
  • 11
1
vote
1 answer

Custom log level in google logging

Is it possible to add custom log level to glog? I couldn't find any examples in their documentation. Tried to edit glog/logging.h but program is crashing with following bt. #0 0x00007f6aacaca1e6 in google::LogMessage::Init(char const*, int, int,…
Nick
  • 375
  • 1
  • 2
  • 9
1
vote
1 answer

How can I send to both Google Logger and cout?

I'm using the google logger (glog) in a C++ project, where source code contains printout of informational items and progress: std::cout << some_useful_stuff << "\n"; And I can use GLOG to log informational items: LOG(INFO) << some_useful_stuff <<…
thclark
  • 4,784
  • 3
  • 39
  • 65
1
vote
1 answer

Caffe - Python quit unexpectedly while using the libglog.0.dylib plug-in

I am trying to run the deep visualization toolbox using Caffe Specs: Mac OS X 10.10 Python2.7 import caffe works fine when I try to run ./run_toolbox.py I get the alert: Python quit unexpectedly while using the libglog.0.dylib plug-in Console…
MoritzB
  • 61
  • 4
1
vote
1 answer

Create a Google Log File without the time string appended

I want to create a simple logfile of the form "foobar.log" without the time_pid_string being appended. This is for MSVC++ on Windows. I have tried google::SetLogDestination(google::INFO,…
empty
  • 5,194
  • 3
  • 32
  • 58
1
vote
1 answer

undefined reference to symbol '_ULx86_64_step' libunwind.so.8: error adding symbols: DSO missing from command line

I'm trying to compile Caffe. make all -j4 worked fine. But making the tests is giving the following error. Debian GNU/Linux 8 (jessie) 64-bit g++ --version g++ (Debian 4.9.2-10) 4.9.2 Gives this error on make test -j4 caffe$ make test…
muglikar
  • 146
  • 2
  • 18
1
vote
1 answer

Golang logging strategy

Standard log package in Go does not support levels unlike logging standard library in Python. Many packages resort to third-party log packages such as glog or logrus. What is best logging strategy for Go when importing third-party packages that may…
shicky
  • 1,193
  • 14
  • 21
1
vote
1 answer

strip caffe's logging message from my own c++ program

I am making my own c++ classification program using caffe library. I want to hide all logging messages during caffe's model initialization step. According to Disable glog's "LOG(INFO)" logging, I could disable most of logs by setting environment…
1
vote
1 answer

Detecting a glog output in a Google UnitTest

The following is a function I have in my source file cv::Mat* Retina::Preprocessing::create_mask(const cv::Mat *img, const uint8_t threshold) { LOG_IF(ERROR, img->empty()) << "The input image is empty. Terminating Now!!"; cv::Mat…
Ujjwal Aryan
  • 3,827
  • 3
  • 20
  • 31
1
vote
0 answers

Replace LOG(fatal) by an exception

I'm currently using caffe but I'm facing a problem. Sometime the library call LOG(FATAL) but I would like to raise an exception and catch it. I have tried to do my own class defined as below: #include #include #include…
Alexis
  • 2,149
  • 2
  • 25
  • 39
1
vote
1 answer

Proper practice for setup upon load in R package development

What is the correct way to go about automatically running some setup code (either in R or C++) once per package loading? Ideally, said code would execute once the user did library(mypackage). Right now, it's contained in a setup() function that…
user2476581
  • 135
  • 2
  • 9
1
vote
1 answer

Gflags and glog compatibility

I wanted to build gflags and glog in my project. Below you see the code. I compiles nearly OK, but due to some compatibility error, I am presented with different fatal errors, depending on which gflags version I try to use in which glog version. As…
katang
  • 2,474
  • 5
  • 24
  • 48