.. title:: DmesgCollector lisa.trace.DmesgCollector ========================= .. autoclass:: lisa.trace::DmesgCollector :no-members: :no-inherited-members: :no-undoc-members: :no-private-members: :no-special-members: .. rubric:: Attributes .. list-table:: :align: left * - :attr:`~lisa.trace.DmesgCollector.LOG_LEVELS` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.DmesgCollector * - :attr:`~lisa.trace.DmesgCollector.NAME` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.CollectorBase Name of the collector class. * - :attr:`~lisa.trace.DmesgCollector.TOOLS` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.CollectorBase Sequence of tools to install on the target when using the collector. .. rubric:: Properties .. list-table:: :align: left * - :attr:`~lisa.utils.Loggable.logger` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Convenience short-hand for ``self.get_logger()``. .. rubric:: Methods .. list-table:: :align: left * - :meth:`~lisa.trace.CollectorBase.__enter__` :sup:`inherited` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.CollectorBase * - :meth:`~lisa.trace.CollectorBase.__exit__` :sup:`inherited` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.CollectorBase * - :attr:`~lisa.trace.CollectorBase.__getattr__` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.DelegateToAttr.._DelegatedToAttr Delegate attribute lookup to a private attribute. * - :meth:`~lisa.trace.CollectorBase.get_data` :sup:`inherited` - .. withrefctx:: :module: lisa.trace :class: lisa.trace.CollectorBase Similar to :meth:`devlib.collector.CollectorBase.get_data` but takes the path directly as a parameter in order to disallow representing an invalid state where no path has been set. * - :meth:`~lisa.utils.Loggable.get_logger` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Provides a :class:`logging.Logger` named after ``cls``. * - :meth:`~lisa.utils.Loggable.log_locals` :sup:`inherited` - .. withrefctx:: :module: lisa.utils :class: lisa.utils.Loggable Debugging aid: log the local variables of the calling function. Attributes ---------- .. autoattribute:: lisa.trace::DmesgCollector.LOG_LEVELS .. autoattribute:: lisa.trace::DmesgCollector.NAME .. autoattribute:: lisa.trace::DmesgCollector.TOOLS Properties ---------- .. autoproperty:: lisa.trace::DmesgCollector.logger Methods ------- .. automethod:: lisa.trace::DmesgCollector.__enter__ .. automethod:: lisa.trace::DmesgCollector.__exit__ .. automethod:: lisa.trace::DmesgCollector.__getattr__ .. automethod:: lisa.trace::DmesgCollector.get_data .. automethod:: lisa.trace::DmesgCollector.get_logger .. automethod:: lisa.trace::DmesgCollector.log_locals