REFACTOR: formatting of log file messages.