adding format_log function and spec tests