mirror of
https://github.com/Radarr/Radarr
synced 2024-12-24 17:01:38 +00:00
Logs view improvements
This commit is contained in:
parent
badcfecb93
commit
678c33d5fa
2 changed files with 8 additions and 2 deletions
|
@ -33,6 +33,11 @@ protected override void Write(LogEventInfo logEvent)
|
||||||
|
|
||||||
log.Logger = logEvent.LoggerName;
|
log.Logger = logEvent.LoggerName;
|
||||||
|
|
||||||
|
if (log.Logger.StartsWith("NzbDrone."))
|
||||||
|
{
|
||||||
|
log.Logger = log.Logger.Remove(0, 9);
|
||||||
|
}
|
||||||
|
|
||||||
if (logEvent.Exception != null)
|
if (logEvent.Exception != null)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(log.Message))
|
if (String.IsNullOrWhiteSpace(log.Message))
|
||||||
|
|
|
@ -31,12 +31,13 @@ Logs
|
||||||
.TableHtmlAttributes(new { @class = "Grid" })
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||||||
.Columns(columns =>
|
.Columns(columns =>
|
||||||
{
|
{
|
||||||
columns.Bound(c => c.Time).Title("Time").Width(190);
|
columns.Bound(c => c.Time).Title("Time").Width(0);
|
||||||
columns.Bound(c => c.Level).Title("Level").Width(0);
|
columns.Bound(c => c.Level).Title("Level").Width(0);
|
||||||
|
columns.Bound(c => c.Logger).Title("Source").Width(0);
|
||||||
columns.Bound(c => c.Message);
|
columns.Bound(c => c.Message);
|
||||||
})
|
})
|
||||||
.DetailView(detailView => detailView.ClientTemplate(
|
.DetailView(detailView => detailView.ClientTemplate(
|
||||||
"<div>Logger: <#= Logger #></div>" +
|
"<div>Method: <#= Method #></div>" +
|
||||||
"<div><#= ExceptionType #></div>" +
|
"<div><#= ExceptionType #></div>" +
|
||||||
"<div class='stackframe'><#= Exception #></div>"
|
"<div class='stackframe'><#= Exception #></div>"
|
||||||
)).DataBinding(data => data.Ajax().Select("_AjaxBinding", "Log"))
|
)).DataBinding(data => data.Ajax().Select("_AjaxBinding", "Log"))
|
||||||
|
|
Loading…
Reference in a new issue