次の方法で共有


MemoryBuilder.WithLoggerFactory(ILoggerFactory) Method

Definition

Add a logger factory.

public Microsoft.SemanticKernel.Memory.MemoryBuilder WithLoggerFactory (Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
member this.WithLoggerFactory : Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Memory.MemoryBuilder
Public Function WithLoggerFactory (loggerFactory As ILoggerFactory) As MemoryBuilder

Parameters

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Returns

Updated Memory builder including the logger factory.

Applies to