working on log util about c++ basic syntax