Improve logging capabilites of the framework

The initialization of the logger's attributes has been optimized,
and the parser now uses try/catch for some specific operations.
Both measures increase the stability of both the logging itself
and the application as a whole.