Update logger.go to format a log message.