changing logging functions to format style