improve logger to provide feature like glog