Apply format on log.