Improve log.format