Table of Contents

Class DebugLogger

Namespace
JD.AI.Core.Tracing
Assembly
JD.AI.Core.dll

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

bool

Methods

Enable(DebugCategory)

Enables the specified debug categories.

public static void Enable(DebugCategory categories)

Parameters

categories DebugCategory

Log(DebugCategory, string)

Logs a debug message if the category is enabled.

public static void Log(DebugCategory category, string message)

Parameters

category DebugCategory
message string

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

category DebugCategory
format string
args object[]

ParseCategories(string?)

Parses a comma-separated category string (e.g. "tools,providers").

public static DebugCategory ParseCategories(string? input)

Parameters

input string

Returns

DebugCategory