Use a HashMap for custom entities, use instance calls for logger.