LogView-class: LogView widget

LogViewR Documentation

LogView widget

Description

See log_view().

Super classes

Widget -> ListBase -> LogView

Public fields

has_cursor

Log views scroll; they have no cursor.

max_lines

Lines kept (older lines are dropped).

timestamps

Prefix lines with the time?

auto_scroll

Follow new lines while scrolled to the end?

Active bindings

lines

The current lines.

paused

Is following paused?

Methods

Public methods

Inherited methods

LogView$new()

Create a log view. See log_view().

Usage
LogView$new(
  max_lines = 1000L,
  timestamps = FALSE,
  auto_scroll = TRUE,
  id = NULL,
  classes = NULL,
  style = NULL
)
Arguments
max_lines, timestamps, auto_scroll

See fields.

id, classes, style

See Widget.


LogView$write()

Add lines.

Usage
LogView$write(..., level = "info")
Arguments
...

Text, pasted together; newlines start new lines.

level

"debug", "info", "success", "warning" or "error".


LogView$clear()

Remove all lines.

Usage
LogView$clear()

LogView$pause()

Stop following new lines.

Usage
LogView$pause()

LogView$resume()

Follow new lines again (and jump to the end).

Usage
LogView$resume()

LogView$at_end()

Is the view scrolled to the last line?

Usage
LogView$at_end()

LogView$item_count()

Number of lines.

Usage
LogView$item_count()

LogView$item_text()

Text of line i.

Usage
LogView$item_text(i)
Arguments
i

Index.


LogView$item_style()

Style of line i (by level).

Usage
LogView$item_style(i)
Arguments
i

Index.


LogView$clone()

The objects of this class are cloneable with this method.

Usage
LogView$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


termr documentation built on Oct. 21, 2026, 5:13 p.m.