Class ConsoleMessagePart
One styled component of a console message. Concrete parts (title, body, timestamp, verbose, stack trace, metric) carry their own value; a renderer maps Part to a style.
public abstract record ConsoleMessagePart : IEquatable<ConsoleMessagePart>
- Inheritance
-
ConsoleMessagePart
- Implements
- Derived
- Inherited Members
Constructors
ConsoleMessagePart(MessagePart, string)
One styled component of a console message. Concrete parts (title, body, timestamp, verbose, stack trace, metric) carry their own value; a renderer maps Part to a style.
protected ConsoleMessagePart(MessagePart Part, string Value)
Parameters
PartMessagePartThe role this part plays in the message.
ValuestringThe rendered text of this part.
Properties
Part
The role this part plays in the message.
public MessagePart Part { get; init; }
Property Value
Value
The rendered text of this part.
public string Value { get; init; }