MemoryBuilder.WithLoggerFactory(ILoggerFactory) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.