fix logging.xml in code templates, closes #674