add glog, implement tcp and http logging, too