modified lib_log.cpp and add unit_test for lib_log. unit_test is doing