I have an existing class that needs a parameterless constructor. I want to log an error and some other data from within it. Everywhere else in my app I put the ILoggerFactory in my constructor and DI takes care of it and thus I can log and such. I can not do that in this case because of the requirement of the parameterless constructor.
Can I create a instance of the ILoggerFactory or any other class I have put into the Dependency Injection stream from my Startup class?