[Core] Improves error logging.

* New Formatter (Error and Exception handler combined)