Here is the test that I did, you can try,
#include <glog/logging.h> using namespace std; int main(int /*argc*/, char** argv) { FLAGS_logtostderr = true; google::SetLogDestination(google::GLOG_INFO,"c:/lovelyGoogle" ); google::InitGoogleLogging(argv[0]); LOG(INFO) << "This is INFO"; LOG(WARNING) << "This is WARNING"; LOG(ERROR) << "This is Error"; system("pause"); return 0; }
Tested under Visual studio 2012, google-glog 0.3.3 on Windows 7.
It generated lvoelyGoogle20131016-141423.5160 on my C driver.
If you set FLAGS_logtostderr = false , the log file will not be generated,
I believe that you have already read this (well, I do not comment)
Hope this helps, good luck.
PS: I tested QtCreator (Qt5.1), and also on Windows7, did not output anything. I have no idea how to fix this now.
source share