Interface IConsoleFormatter
- Namespace
- FishMMO.Logging
- Assembly
- FishMMO-Logger.dll
Defines the interface for formatting and writing log entries to the console.
public interface IConsoleFormatter
Methods
WriteColoredParts(LogLevel, string, int, params (string color, string text)[])
Writes a message to the console composed of multiple colored parts.
void WriteColoredParts(LogLevel level, string source, int columnWidth, params (string color, string text)[] parts)
Parameters
levelLogLevelThe log level for this message (used for indentation/context).
sourcestringcolumnWidthintOptional. The minimum width for each text segment. Text will be padded if shorter. Use 0 or negative for no padding.
parts(string color, string text)[]An array of tuples, where each tuple contains a color (hex or named) and the text for that part.
WriteStructuredLog(LogEntry)
Writes a structured log entry to the console.
void WriteStructuredLog(LogEntry entry)
Parameters
entryLogEntryThe log entry to format and write.