A function that formats DateTime objects to strings. dateTime is the DateTime object to format.
dateTime
typedef LoggerDateFormatter = String Function(DateTime dateTime);