I have a set of go programs that get run on a compute farm. I'm using the glog library for all my logging (love it). My go scheduler captures the stdout and stderr from the porgrams and redirects them to two different files. I then have a web interface which allows you to see what the error messages were (and normal messages were) for each program scheduled.
In my log files I have some glog.Info and glog.Error. However, when I run the program with "test --logtostderr" everything goes to stderr. I would like debug and info messages to go to stdout and error and fatal messages to go to stderr.
Is there any way to do this using glog? If not, is there a simple local change I can make to my glog library to do this? How do other people handle this?
Thanks,
wu