Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Google-glog output in console?

I am using a framework for convolutional neural networks called caffe and its output in console is provided by Google-glog. However when I try to save the output to a file using the following commands:

sh train_imagenet.sh | tee output.txt

or

sh train_imagenet.sh > output.txt

And I get a void file and the output does not save to the file. So I want to know how to retrieve this output. Thanks in advance.

like image 524
ssierral Avatar asked Jul 03 '14 22:07

ssierral


1 Answers

Use FLAGS_alsologtostderr = 1; in main().

For more infomation, check Setting Flags section in glog's doc.

like image 151
nn0p Avatar answered Sep 20 '22 13:09

nn0p