Skip to content

Commit

Permalink
.Net: Create a classifiable Kernel Function logger (#8107)
Browse files Browse the repository at this point in the history
### Motivation and Context

Closes #5989 

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
  • Loading branch information
markwallace-microsoft authored Aug 14, 2024
1 parent 79be060 commit 2366719
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public async Task<FunctionResult> InvokeAsync(
Verify.NotNull(kernel);

using var activity = s_activitySource.StartActivity(this.Name);
ILogger logger = kernel.LoggerFactory.CreateLogger(this.Name) ?? NullLogger.Instance;
ILogger logger = kernel.LoggerFactory.CreateLogger(typeof(KernelFunction)) ?? NullLogger.Instance;

// Ensure arguments are initialized.
arguments ??= [];
Expand Down

0 comments on commit 2366719

Please sign in to comment.