this should be ``LoggerInterface|null`` (same in other classes)