move user log message formatting to separate method