API Reference
Class
LogTags
How log levels look in ConsoleMonster (the log region, Write-ConsoleLog, the logging provider of ConsoleMonster.Extensions.Logging): the tag word with a status marker when glyphs allow ("✗ ERR", "▴ WARN", "✓ OK"), its style, and which levels are quiet (verbose and debug text is muted).
Inheritance
- Object
- LogTags
Methods
public static Boolean IsQuiet(String level) #Returns:
BooleanWhether text at a level is shown muted (verbose and debug).
Parameters
- level System.String
- A normalized level.
Returns
True for quiet levels.
public static String Normalize(String? level) #Returns:
StringThe level as one of LogLevels.Names (info, warn, err, verbose, debug, pass, skip); unknown words are info.
Parameters
- level System.String?
- A level name or one of PowerShell's words.
Returns
The normalized level.
public static Style Style(String level, RenderContext context) #Returns:
StyleThe tag's style: failure, warning or pass colours; muted for the rest.
Parameters
- level System.String
- A normalized level.
- context ConsoleMonster.Canvas.RenderContext
- The render context.
Returns
The style.
public static String Tag(String level, RenderContext? context = null) #Returns:
StringThe level column's text: the tag word, with the status marker in front when the context's glyphs allow; empty for info.
Parameters
- level System.String
- A normalized level.
- context ConsoleMonster.Canvas.RenderContext? = null
- The render context, or null for the word alone (narrated lines).
Returns
The tag.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?