.. _doot.reporters.formatter: ======================== doot.reporters.formatter ======================== .. py:module:: doot.reporters.formatter Classes ------- .. autoapisummary:: doot.reporters.formatter.ReportFormatter Module Contents =============== .. _doot.reporters.formatter.ReportFormatter: .. py:class:: ReportFormatter(*, segments: jgdv.Maybe[dict] = None) ReportFormatter abstracts the logic of creating a contextual message. .. py:attribute:: _segments .. py:attribute:: line_fmt :value: '{ctx}{act}' .. py:attribute:: msg_fmt :value: '{ctx}{act}{gap}[{info}]{gap2}: {detail}' .. py:method:: get_segment(key: str) -> jgdv.Maybe[str] .. py:method:: _process_segments() -> Ensure all needed segments exist and are the right size if any are missing, use doot.reporters._interface.TRACE_LINES_ASCII's values .. py:method:: _build_ctx(ctx: jgdv.Maybe[list]) -> str Given a current context list, builds a prefix string for the current print call