LogTailView
ConsoleMonster.Live.Tails
A bounded log viewport with queued appends and navigation. LogRegion owns storage and line rendering.
Inheritance
- LiveWidget
- LogTailView
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Extension method LogTailView.WithTimestampFormat
- Method LogTailViewFluent.WithTimestampFormat
Accepted by parameters 2
- Extension method LogTailView.WithTimestampFormat
- Method LogTailViewFluent.WithTimestampFormat
Constructors
public LogTailView(int capacity = 1000, string name = "tail", string? highlight = null) #Creates a view that initially follows the newest entry.
Parameters
- capacity int = 1000
- Maximum retained history entries. Pending updates are not discarded.
- name string = "tail"
- Unique live-session target name.
- highlight string? = null
- Optional literal, ordinal case-insensitive substring to emphasize.
Methods
public override void Apply(LiveEvent liveEvent) #Applies an event to the widget's state.
Parameters
- liveEvent ConsoleMonster.Live.LiveEvent
- The event.
public override Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Post(ILiveDispatcher dispatcher, TailedLogEntry entry) #Queues a literal entry through the session. May be called by a producer thread.
Parameters
- dispatcher ConsoleMonster.Live.ILiveDispatcher
- The owning session or dispatcher.
- entry ConsoleMonster.Live.Tails.TailedLogEntry
- The original line and source metadata.
public override void Render(Region region, RenderContext context) #Renders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual string? Describe(LiveEvent liveEvent) #Parameters
- liveEvent LiveEvent
Returns
string?Properties
public bool Following { get; private set; } #Whether the viewport follows new entries. Read after dispatch or on the render thread.
public string? TimestampFormat { get; set; } #Invariant source timestamp format, or null for time only, adding dates when retained source dates differ. The format and timestamp column are independent of terminal width; missing timestamps stay blank.
public long DiscardedHistoryLines { get; } #Lines evicted from bounded retained history after application.
public IReadOnlyCollection<LogEntry> Entries { get; } #Retained entries, oldest first. Enumerate on the render thread or after stopping the session.
Inherited Properties
Extension Methods
public static LogTailView WithTimestampFormat(LogTailView logTailView, string? value) #Sets LogTailView.TimestampFormat: Invariant source timestamp format, or null for time only, adding dates when retained source dates differ. The format and timestamp column are independent of terminal width; missing timestamps stay blank.
Parameters
- logTailView ConsoleMonster.Live.Tails.LogTailView
- The instance.
- value string?
- The value.