Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d4019c3
structured logger formatter prototype
maryamariyan Apr 15, 2020
e62739b
add ref to Linq + add public apis
maryamariyan Apr 15, 2020
ae48df1
New APIs for Structured Log Formatting
maryamariyan May 12, 2020
968496c
Apply review feedback
maryamariyan May 14, 2020
55ea183
nit cleanup
maryamariyan May 14, 2020
d2e0808
- messages can color vars in messages (Compact)
maryamariyan May 15, 2020
cf38d82
TODO
maryamariyan May 15, 2020
515bde6
Rename to XConsoleLog...
maryamariyan May 15, 2020
6b5de1e
FormatterNames const not instance properties
maryamariyan May 15, 2020
c9d0939
add AddCompact and other helpers
maryamariyan May 15, 2020
27ddec2
Rename AddCompactFormatter for short?
maryamariyan May 15, 2020
a558275
Revert "Rename AddCompactFormatter for short?"
maryamariyan May 21, 2020
f58aa1f
Add back deprecated APIs
maryamariyan May 21, 2020
94e5c18
exception messaging in compact remains single line
maryamariyan May 21, 2020
9c3345e
cleanup
maryamariyan May 26, 2020
e441d04
rename default to colored
maryamariyan May 26, 2020
3cc92ed
deprecate ConsoleLoggerFormat
maryamariyan May 26, 2020
d72c6f9
minor rename
maryamariyan May 26, 2020
b7085b5
Rename back to default formatter
maryamariyan May 27, 2020
12223c4
triple slash comments on new helpers
maryamariyan May 28, 2020
af1bc5c
slight impl fixup
maryamariyan May 28, 2020
6ab5aa9
ConsoleLoggerProvider: keep ctor not deprecate
maryamariyan May 28, 2020
85d50b2
Added triple slash comments
maryamariyan May 28, 2020
ff39ae1
corner cases
maryamariyan May 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor rename
  • Loading branch information
maryamariyan committed May 29, 2020
commit d72c6f97236816adbb129054b71d525ccc18e5f8
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public void SetScopeProvider(Microsoft.Extensions.Logging.IExternalScopeProvider
public readonly partial struct ConsoleMessage
{
public readonly System.ConsoleColor? Background;
public readonly string Content;
public readonly System.ConsoleColor? Foreground;
public readonly string Message;
public ConsoleMessage(string message, System.ConsoleColor? background = default(System.ConsoleColor?), System.ConsoleColor? foreground = default(System.ConsoleColor?)) { throw null; }
}
public partial interface IConsoleLogFormatter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ internal virtual void WriteMessage(LogMessageEntry entry)
var console = entry.LogAsError ? ErrorConsole : Console;
foreach (var message in entry.Messages)
{
console.Write(message.Content, message.Background, message.Foreground);
console.Write(message.Message, message.Background, message.Foreground);
}
console.Flush();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public readonly struct ConsoleMessage
{
public ConsoleMessage(string message, ConsoleColor? background = null, ConsoleColor? foreground = null)
{
Content = message;
Message = message;
Background = background;
Foreground = foreground;
}
public readonly string Content;
public readonly string Message;
public readonly ConsoleColor? Background;
public readonly ConsoleColor? Foreground;
}
Expand Down