@attribute [Route(Routes.ASSISTANT_LOG_VIEWER)] @inherits MSGComponentBase
@T("Log Viewer") @T("Usage log") @T("Startup log") @if (!this.autoRefresh) { @T("Refresh") } @T("Open in folder") @foreach (var option in this.logLevelOptions) { @this.GetFilterOptionDisplay(option) } @foreach (var option in this.loggerOptions) { @this.GetFilterOptionDisplay(option) } @foreach (var option in this.sourceDetailOptions) { @this.GetFilterOptionDisplay(option) } @T("Clear") @this.CurrentLogPath @this.StatusText @if (!string.IsNullOrWhiteSpace(this.loadError)) { @this.loadError }
@if (this.isLoading && this.loadedLines.Count == 0) {
@T("Loading log file...")
} else if (this.displayLines.Count == 0) {
@T("No matching log lines.")
} else {
@foreach (var line in this.displayLines) {
@line.Number @((MarkupString)this.RenderLine(line))
}
}