logging-v2: replace when() with the smart trick in google-glog
logging-v2: rewrite logging