Modified method buildLogFileContents so it would take a MessageFormatter
instad of a Formatters