Class TMPLogColorFormatter
Color-coded log formatter for TextMeshPro
Inheritance
object
TMPLogColorFormatter
Namespace: i5.Toolkit.Core.AppConsole
Assembly: cs.temp.dll.dll
Syntax
public class TMPLogColorFormatter : ILogColorFormatter, ILogFormatter
Properties
AssertColor
The color for assert messages
Declaration
public Color AssertColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
DefaultColor
The color for unexpected message types
Declaration
public Color DefaultColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ErrorColor
The color for error messages
Declaration
public Color ErrorColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
ExceptionColor
The color for exception messages
Declaration
public Color ExceptionColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
LogColor
The color for log messages
Declaration
public Color LogColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
WarningColor
The color for warning messages
Declaration
public Color WarningColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
Format(ILogMessage)
Formats the given log message to text output
Declaration
public string Format(ILogMessage message)
Parameters
Type | Name | Description |
---|---|---|
ILogMessage | message | The message to format |
Returns
Type | Description |
---|---|
string | Returns formatted text output based on the log message |