errorhandler: check for Logger class existing