Class DebugLogger
Writes category-filtered debug output to stderr when --debug is active.
public static class DebugLogger
- Inheritance
-
DebugLogger
- Inherited Members
Properties
IsEnabled
Whether any debug categories are enabled.
public static bool IsEnabled { get; }
Property Value
Methods
Enable(DebugCategory)
Enables the specified debug categories.
public static void Enable(DebugCategory categories)
Parameters
categoriesDebugCategory
Log(DebugCategory, string)
Logs a debug message if the category is enabled.
public static void Log(DebugCategory category, string message)
Parameters
categoryDebugCategorymessagestring
Log(DebugCategory, string, params object[])
Logs a debug message if the category is enabled, with formatting.
public static void Log(DebugCategory category, string format, params object[] args)
Parameters
categoryDebugCategoryformatstringargsobject[]
ParseCategories(string?)
Parses a comma-separated category string (e.g. "tools,providers").
public static DebugCategory ParseCategories(string? input)
Parameters
inputstring