You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Spectre Console Log Writers to Use ILogMessage Interface
- Updated ProgressConsoleMessageWriter to implement IAsyncLogMessageWriter for ProgressStartPayload and ProgressFinishedPayload using ILogMessage.
- Refactored SpectreConsoleLogMessageWriter to accept a SpectreConsoleLogSink in the constructor and implement IAsyncLogMessageWriter for generic payloads.
- Modified StatusConsoleMessageWriter to utilize ILogMessage for status updates.
- Changed WidgetPayloadLogMessageWriter to accept ILogMessage for writing widget payloads.
- Enhanced SpectreConsoleLogSink to manage log message writers and filters more effectively.
- Added DebugTextStyle to LogLevelStylePalette for improved log level styling.
- Improved LogMessageWidget rendering logic to handle various payload scenarios and ensure proper formatting.
- Updated tests to reflect changes in log message writing and rendering, including new test cases for different log levels and payloads.
/// Initializes a new instance of the <see cref="SpectreConsoleLogMessageWriter{TValue}"/> class with default styles for log levels. The constructor creates badge widgets for different log levels (info, warning, error, unknown)
46
+
/// Initializes a new instance of the <see cref="SpectreConsoleLogMessageWriter{TValue}"/> class with default styles for log levels. The constructor creates badge widgets for different log levels (debug, info, warning, error, none, unknown)
43
47
/// using the styles defined in the <see cref="StylePalette"/>. These badges are used to render the log level
44
48
/// part of log messages when the <see cref="ShowLogLevel"/> property is set to <c>true</c>.
0 commit comments