formatting logging