Updated logging.xml in Sample app and code templates and added "log" dir to Sample app, closes #879