Use Logger::tr instead of QObject::tr.