add string_format(...)
replace cout with cerr in logger.cpp