knitter: only log if logger has been initialised
utility: minor improvements to xml text reader

- log exceptions to file
- wrap names of things to log in quotes to aid troubleshooting
- use const by reference as we are not mutating inputs anyway
- cosmetic fixes to the text reader spec