Whether test holds for the content or the logger name.
test
bool mentions(bool Function(String text) test) => test(content) || (loggerName != null && test(loggerName!));