LogViewer Class
public class LogViewer : ComponentBaseNo documentation is available.
- Inheritance
ComponentBaseLogViewer
Constructors
| Name | Description |
|---|---|
| LogViewer() |
LogViewer()
LogViewer.razorpublic LogViewer()No documentation is available.
Properties
| Name | Description |
|---|---|
| DateTimeStringFormat | 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. |
| Entries | Gets or sets the collection of log entries to display. |
| LogHighlighters | Gets or sets the collection of log highlighters to apply to log messages. Default includes UrlLogHighlighter. |
| ShowLineNumbers | Gets or sets a value indicating whether to display line numbers. Default is true. |
| TimeSpanStringFormat | Gets or sets the format string for displaying time spans. If not specified, uses the default format "G". Values are formatted using CultureInfo.InvariantCulture. |
| TimestampDisplayFormat | Gets or sets the format for displaying timestamps. Default is TimestampDisplayFormat.FullDateTime. |
DateTimeStringFormat
LogViewer.razorGets 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
Entries
LogViewer.razorGets or sets the collection of log entries to display.
public IEnumerable<LogEntry>? Entries { get; set; }Property value
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.razorGets or sets the collection of log highlighters to apply to log messages. Default includes UrlLogHighlighter.
public IEnumerable<ILogHighlighter> LogHighlighters { get; set; }Property value
ShowLineNumbers
LogViewer.razorTimeSpanStringFormat
LogViewer.razorGets 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
TimestampDisplayFormat
LogViewer.razorGets or sets the format for displaying timestamps. Default is TimestampDisplayFormat.FullDateTime.
public TimestampDisplayFormat TimestampDisplayFormat { get; set; }Property value
Methods
| Name | Description |
|---|---|
| BuildRenderTree(RenderTreeBuilder) | |
| OnParametersSet() |
BuildRenderTree(RenderTreeBuilder)
LogViewer.razorprotected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
__builderRenderTreeBuilder
No documentation is available.
OnParametersSet()
LogViewer.razorprotected override void OnParametersSet()No documentation is available.