[BUGFIX] Log exceptions recursively in ``SystemLogger::logException()``
With this change "post mortem" information about the complete exception
chain is logged, and not only for the outer exception.
This also adds some cosmetic and non-functional cleanups in order to
increase readability and IDE support:
- Import FQN where applicable
- Remove unused import statements
Releases: master, 2.3, 2.2