beatriceluigi / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

glog doesn't create log file #122

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. LOG(INFO) << "string" generates output on console, but not log file
2.
3.

What is the expected output? What do you see instead?
Nothing, only output on console

What version of the product are you using? On what operating system?
glog-0.3.2

Please provide any additional information below.
I'm using Eclipse as IDE

Original issue reported on code.google.com by cinquepa...@gmail.com on 18 Apr 2012 at 3:46

GoogleCodeExporter commented 9 years ago
Does your program calls google::InitGoogleLogging() ?

Original comment by shinichi...@gmail.com on 18 Apr 2012 at 3:48

GoogleCodeExporter commented 9 years ago
yes, I use both

google::InitGoogleLogging(argv[0]);
google::SetLogDestination(google::INFO, 
"/home/leon_usr/A1497_GDB/log/log.INFO"); 

but no file is created, neither in default directory (/tmp I suppose)

Original comment by cinquepa...@gmail.com on 18 Apr 2012 at 3:52

GoogleCodeExporter commented 9 years ago
GLOG_log_dir flag doesn't make any change... 

Original comment by cinquepa...@gmail.com on 18 Apr 2012 at 4:00

GoogleCodeExporter commented 9 years ago
Is the log folder (in your case /home/leon_usr/A1497_GDB/log/) already present?
If it isn't, glog won't create it.

Original comment by kikijiki...@gmail.com on 14 Oct 2012 at 12:16