Skip to content

Commit

Permalink
feat: add host to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Searles committed Jan 12, 2024
1 parent 6fd980c commit e029995
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Elmah.Common/Logs$/ErrorLogFilterHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private static bool Check<T>(ErrorLogEntry entry, ErrorLogFilter filter, T value
{ "status-code", e => e.Error.StatusCode.ToString() },
{ "type", e => e.Error.Type },
{ "url", e => e.Error.ServerVariables["PathBase"] + e.Error.ServerVariables["Path"] },
{ "user", e => e.Error.User }
{ "user", e => e.Error.User },
{ "hostName", e => e.Error.HostName }
};

private static readonly Dictionary<ErrorLogFilterCondition, Func<string?, string, bool>> StringConditions =
Expand Down
12 changes: 12 additions & 0 deletions ui/src/components/ErrorDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,18 @@
</b-link>
</td>
</tr>
<tr>
<th>Host Name</th>
<td class="filter-link-hid">
{{ item.hostName }}
<b-link
class="filter-link"
@click="addFilter('hostName', '=', item.hostName)"
>
<font-awesome-icon icon="filter" class="mr-sm-2" />
</b-link>
</td>
</tr>
<tr>
<th>Client IP</th>
<td class="filter-link-hid">
Expand Down

0 comments on commit e029995

Please sign in to comment.