Add date to logs, calculate format string once