TextLogView

āš ļø This type is unstable and may change significantly in a way that the data won't be backwards compatible. A view of a text log, for use with archetypes.TextLog.

Properties properties

columns columns

The columns to display in the view.

  • text_log_columns: All columns to be displayed.
  • timeline: What timeline the timeline column should show.

rows rows

Filter for rows to display in the view.

format_options formatoptions

Formatting options for the text log view.

Example example

Use a blueprint to show a TextLogView. use-a-blueprint-to-show-a-textlogview

"""Use a blueprint to show a text log."""

import rerun as rr
import rerun.blueprint as rrb

# Create a text view that displays all logs.
blueprint = rrb.Blueprint(
    rrb.TextLogView(
        origin="/log",
        name="Text Logs",
        columns=rrb.TextLogColumns(
            rrb.components.TextLogColumnList(["loglevel", "timeline", "entitypath", "body"]),
            timeline="time",
        ),
        rows=rrb.TextLogRows(
            filter_by_log_level=["INFO", "WARN", "ERROR"],
        ),
        format_options=rrb.TextLogFormat(
            monospace_body=False,
        ),
    ),
    collapse_panels=True,
)

rr.init("rerun_example_text_log", spawn=True, default_blueprint=blueprint)

rr.set_time("time", sequence=0)
rr.log("log/status", rr.TextLog("Application started.", level=rr.TextLogLevel.INFO))
rr.set_time("time", sequence=5)
rr.log("log/other", rr.TextLog("A warning.", level=rr.TextLogLevel.WARN))
for i in range(10):
    rr.set_time("time", sequence=i)
    rr.log("log/status", rr.TextLog(f"Processing item {i}.", level=rr.TextLogLevel.INFO))

Visualized archetypes visualized-archetypes