-
-
Save anonymous/50f9b869b48c1478e858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Tuple<XAttribute[], IEnumerable<object>> ShowLogEntry(LogEntry entry) | |
{ | |
return new Tuple<XAttribute[], IEnumerable<object>>( | |
new[] | |
{ | |
Html.CreateClassAttribute(string.Format("record-{0}", entry.Level.ToString().ToLower())), | |
new XAttribute("entry-partitionkey", entry.PartitionKey), | |
new XAttribute("entry-rowkey", entry.RowKey), | |
}, | |
new object[] | |
{ | |
new[] | |
{ | |
new XAttribute("class", "log-level-icon"), | |
ShowLevelIcon(entry.Level), | |
}, | |
Html.XMultiline( | |
s_knownLevels.Contains(entry.Level) ? null : entry.Level.ToString(), | |
ShowDate(entry.Timestamp), | |
entry.Role, | |
string.Format("Instance {0}", entry.ShortInstance)), | |
Html.XCreateDiv(new XAttribute("class", "plaintext"), entry.Message), | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment