- Finish porting logging.cc