Do formatting for a record - if a formatter is set, use it. Otherwise, use the default formatter for the module.
format(record)