You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file semantic-kernel/dotnet/src/SemanticKernel.Abstractions/Functions/KernelFunction.cs when create logger, add a prefix to the name of the Logger for logging filtering.
line 160 and line 303.
make ILogger logger = kernel.LoggerFactory.CreateLogger(this.Name) ?? NullLogger.Instance;
to ILogger logger = kernel.LoggerFactory.CreateLogger("Microsoft.SemanticKernel.KernelFunction." + this.Name) ?? NullLogger.Instance;
In file
semantic-kernel/dotnet/src/SemanticKernel.Abstractions/Functions/KernelFunction.cs
when create logger, add a prefix to the name of the Logger for logging filtering.line 160 and line 303.
make
ILogger logger = kernel.LoggerFactory.CreateLogger(this.Name) ?? NullLogger.Instance;
to
ILogger logger = kernel.LoggerFactory.CreateLogger("Microsoft.SemanticKernel.KernelFunction." + this.Name) ?? NullLogger.Instance;
So we can easy to filter logging via config
The text was updated successfully, but these errors were encountered: