For what it’s worth: instead of mocking an ILoggerFactory
, you could also pass an instance of NullLoggerFactory
. This NullLoggerFactory
will return instances of NullLogger
. According to the docs, this is a:
Minimalistic logger that does nothing.