added formatting for local logging