Skip to content

Commit

Permalink
Tweaks to inline logger
Browse files Browse the repository at this point in the history
  • Loading branch information
agc93 committed Aug 25, 2020
1 parent eb8c434 commit f7e7e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Spectre.Console.Extensions.Logging/SpectreInlineLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private string GetEventIdMarkup(EventId evId) {
return string.Empty.PadRight(7);
}
var eventId = string.Format("{0,4:####}", evId.Id);
return $"[dim grey]({eventId})[/] ";
return $"[dim grey][[{eventId}][/] ";
}

private string GetLevelMarkup(LogLevel level) {
Expand All @@ -63,8 +63,8 @@ private string GetLevelMarkup(LogLevel level) {
LogLevel.Error => "[bold red]|ERROR|:[/] ",
LogLevel.Warning => "[bold orange3]| WARN|:[/] ",
LogLevel.Information => "[bold dim]| INFO|:[/] ",
LogLevel.Debug => "[dim italic]|DEBUG|:[/] ",
LogLevel.Trace => "[dim italic grey]|TRACE|:[/] ",
LogLevel.Debug => "[dim]|DEBUG|:[/] ",
LogLevel.Trace => "[dim grey]|TRACE|:[/] ",
_ => "| UNKN|: "
};
}
Expand Down

0 comments on commit f7e7e0c

Please sign in to comment.