Update logging.cc

fix cast style to cpp static_cast