Table of Contents

Interface IConsoleMessageWriter

Namespace
RDCore.SDK.ConsoleIO
Assembly
RDCore.SDK.dll

Renders structured console messages. The full form takes a ConsoleMessageBuilder; the convenience methods cover the common "one styled line" cases. Every method returns the writer for chaining.

public interface IConsoleMessageWriter

Methods

Clear()

Clears the console.

IConsoleMessageWriter Clear()

Returns

IConsoleMessageWriter

Error(string, string?)

Writes message as an Error message, optionally titled.

IConsoleMessageWriter Error(string message, string? title = null)

Parameters

message string
title string

Returns

IConsoleMessageWriter

Info(string, string?)

Writes message as an Information message, optionally titled.

IConsoleMessageWriter Info(string message, string? title = null)

Parameters

message string
title string

Returns

IConsoleMessageWriter

Message(MessageKind, string, string?)

Writes message as a message of the given kind, optionally titled.

IConsoleMessageWriter Message(MessageKind kind, string message, string? title = null)

Parameters

kind MessageKind

The message kind, which selects the icon and accent style.

message string

The message body.

title string

An optional title shown ahead of the body.

Returns

IConsoleMessageWriter

Success(string, string?)

Writes message as a Success message, optionally titled.

IConsoleMessageWriter Success(string message, string? title = null)

Parameters

message string
title string

Returns

IConsoleMessageWriter

Warn(string, string?)

Writes message as a Warning message, optionally titled.

IConsoleMessageWriter Warn(string message, string? title = null)

Parameters

message string
title string

Returns

IConsoleMessageWriter

WriteAssemblyInfo()

Writes the running assembly's name and version line.

IConsoleMessageWriter WriteAssemblyInfo()

Returns

IConsoleMessageWriter

WriteException(Exception)

Renders an exception (type, message, and a shortened stack trace).

IConsoleMessageWriter WriteException(Exception exception)

Parameters

exception Exception

Returns

IConsoleMessageWriter

WriteLegalNotice()

Writes the copyright / legal notice line.

IConsoleMessageWriter WriteLegalNotice()

Returns

IConsoleMessageWriter

WriteLine(string)

Writes a single plain line at Trace — no title, timestamp, or icon.

IConsoleMessageWriter WriteLine(string text)

Parameters

text string

The line to write.

Returns

IConsoleMessageWriter

WriteMessage(ConsoleMessageBuilder)

Renders a fully built message.

IConsoleMessageWriter WriteMessage(ConsoleMessageBuilder builder)

Parameters

builder ConsoleMessageBuilder

The message parts — kind, and any of: title, timestamp, body, verbose, stack trace, placeholder spans.

Returns

IConsoleMessageWriter

WriteSlogan()

Writes the project slogan line.

IConsoleMessageWriter WriteSlogan()

Returns

IConsoleMessageWriter