LogViewer Class

public class LogViewer : ComponentBase

No documentation is available.

Inheritance
ComponentBase LogViewer

Constructors

NameDescription
LogViewer()

LogViewer()

LogViewer.razor
public LogViewer()

No documentation is available.

Properties

NameDescription
DateTimeStringFormatGets or sets the format string for displaying date and time values. If not specified, uses the default format "R". Values are formatted using CultureInfo.InvariantCulture.
EntriesGets or sets the collection of log entries to display.
LogHighlightersGets or sets the collection of log highlighters to apply to log messages. Default includes UrlLogHighlighter.
ShowLineNumbersGets or sets a value indicating whether to display line numbers. Default is true.
TimeSpanStringFormatGets or sets the format string for displaying time spans. If not specified, uses the default format "G". Values are formatted using CultureInfo.InvariantCulture.
TimestampDisplayFormatGets or sets the format for displaying timestamps. Default is TimestampDisplayFormat.FullDateTime.

DateTimeStringFormat

LogViewer.razor

Gets or sets the format string for displaying date and time values. If not specified, uses the default format "R". Values are formatted using CultureInfo.InvariantCulture.

public string? DateTimeStringFormat { get; set; }

Property value

string?

Gets or sets the collection of log entries to display.

public IEnumerable<LogEntry>? Entries { get; set; }

Property value

IEnumerable<LogEntry>?

Remarks

The sequence is snapshotted on each parameter change. Entries are tracked by reference, so a sequence that creates new LogEntry instances every time it is enumerated is supported, but per-entry state such as the expanded flag will not survive across renders. The same LogEntry instance must not appear more than once in the tree: line numbers, selection and expanded state are all keyed on the instance.

LogHighlighters

LogViewer.razor

Gets or sets the collection of log highlighters to apply to log messages. Default includes UrlLogHighlighter.

public IEnumerable<ILogHighlighter> LogHighlighters { get; set; }

ShowLineNumbers

LogViewer.razor

Gets or sets a value indicating whether to display line numbers. Default is true.

public bool ShowLineNumbers { get; set; }

Property value

bool

TimeSpanStringFormat

LogViewer.razor

Gets or sets the format string for displaying time spans. If not specified, uses the default format "G". Values are formatted using CultureInfo.InvariantCulture.

public string? TimeSpanStringFormat { get; set; }

Property value

string?

TimestampDisplayFormat

LogViewer.razor

Gets or sets the format for displaying timestamps. Default is TimestampDisplayFormat.FullDateTime.

public TimestampDisplayFormat TimestampDisplayFormat { get; set; }

Methods

NameDescription
BuildRenderTree(RenderTreeBuilder)
OnParametersSet()

BuildRenderTree(RenderTreeBuilder)

LogViewer.razor
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

No documentation is available.

OnParametersSet()

LogViewer.razor
protected override void OnParametersSet()

No documentation is available.