LogTags
ConsoleMonster.Widgets
How log levels look in ConsoleMonster (the log region, Write-ConsoleLogEntry, the logging provider of ConsoleMonster.Extensions.Logging): a status marker and tag word ("✗ ERR", "▲ WARN", "✓ OK"), or the marker alone with Words markers, its style, and which levels are quiet (verbose and debug text is muted).
Inheritance
- object
- LogTags
Methods
public static bool IsQuiet(string level) #Whether text at a level is shown muted (verbose and debug).
Parameters
- level string
- A normalized level.
Returns
bool True for quiet levels.public static string Normalize(string? level) #The level as one of LogLevels.Names (info, warn, err, critical, verbose, debug, pass, skip); unknown words are info.
Parameters
- level string?
- A level name or one of PowerShell's words.
Returns
string The normalized level.public static Style Style(string level, RenderContext context) #The tag's style: critical, failure, warning or pass colours; muted for the rest.
Parameters
- level string
- A normalized level.
- context ConsoleMonster.Canvas.RenderContext
- The render context.
public static string Tag(string level, RenderContext? context = null) #The level column's text: a marker and tag word, the marker alone with Words, or the word alone in ASCII; empty for info.
Parameters
- level string
- A normalized level.
- context ConsoleMonster.Canvas.RenderContext? = null
- The render context, or null for the word alone (narrated lines).
Returns
string The tag.