Use the logger.
Use Freemarker to generate the report.