laatzen/LaaProductionWeb/LaaProductionWeb.Blazor/Components/Logging/Logging.razor
2025-03-17 16:03:24 +01:00

31 lines
763 B
Plaintext

@using LaaProductionWeb.Blazor.Components.Logging.Sqlite
@attribute [AllowAnonymous]
@page "/logging"
<table class="logging-table">
<thead>
<tr>
<th>@nameof(SqliteLog.LogId)</th>
<th>@nameof(SqliteLog.EventId)</th>
<th>@nameof(SqliteLog.EventName)</th>
<th>@nameof(SqliteLog.EventSource)</th>
<th>@nameof(SqliteLog.LogLevel)</th>
<th>@nameof(SqliteLog.DateTime)</th>
<th>@nameof(SqliteLog.Message)</th>
</tr>
</thead>
<tbody>
@foreach (var log in this.Logs)
{
<tr>
<th>@log.LogId</th>
<td>@log.EventId</td>
<td>@log.EventName</td>
<td>@log.EventSource</td>
<td>@log.LogLevel</td>
<td>@log.DateTime.ToString("yyyy-MM-dd HH:mm:ss.FFFFFFF")</td>
<td>@log.Message</td>
</tr>
}
</tbody>
</table>