LoggingChatClientBuilderExtensions.UseLogging Method

Definition

public static Microsoft.Extensions.AI.ChatClientBuilder UseLogging (this Microsoft.Extensions.AI.ChatClientBuilder builder, Microsoft.Extensions.Logging.ILogger? logger = default, Action<Microsoft.Extensions.AI.LoggingChatClient>? configure = default);
static member UseLogging : Microsoft.Extensions.AI.ChatClientBuilder * Microsoft.Extensions.Logging.ILogger * Action<Microsoft.Extensions.AI.LoggingChatClient> -> Microsoft.Extensions.AI.ChatClientBuilder
<Extension()>
Public Function UseLogging (builder As ChatClientBuilder, Optional logger As ILogger = Nothing, Optional configure As Action(Of LoggingChatClient) = Nothing) As ChatClientBuilder

Parameters

logger
ILogger

Returns

Applies to