Kolya Bocharov
unread,Jan 24, 2012, 4:08:58 PM1/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-glog
Hi
could please someone help me with the issue below -
I have the following code -
void main(int argc, char* argv[]) {
google::InitGoogleLogging(argv[0]);
google::SetLogDestination(google::GLOG_INFO, "./log.mmdsd");
LOG(INFO) << "INFO this is a very long string to log out";
LOG(WARNING) << "WARNING this is a very long string to log out";
LOG(ERROR) << "ERROR this is a very long string to log out";
google::SetVLOGLevel("*", 10);
VLOG(0) << " 0 verbose log";
VLOG(1) << " 1 verbose log";
VLOG(2) << " 2 verbose log";
}
and get the following output in target file -
I0124 12:54:38.670425 6980 main.cpp:20] INFO this is a very long
string to log out
W0124 12:54:38.701625 6980 main.cpp:21] WARNING this is a very long
string to log out
E0124 12:54:38.701625 6980 main.cpp:22] ERROR this is a very long
string to log out
I0124 12:54:38.701625 6980 main.cpp:25] 0 verbose log
So, I set Verbose log level to 10 and expect to see all 3 lines of
levels 1, 2 and 3 logged in output file but only 0-level line appears
in log file.Could you please explain what i'm doing wrong?
thank you