[Core] Improves creation of logger and adds application wide error logger.