Skip to content

Commit

Permalink
Use HostLoggerAdapter class for ILogger for better log message category
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinGrote committed Nov 14, 2024
1 parent 9134c7d commit 3335b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowerShellEditorServices/Server/PsesLanguageServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public async Task StartAsync()
{
// Wire up the HostLogger to the LanguageServer's logger once we are initialized, so that any messages still logged to the HostLogger get sent across the LSP channel. There is no more logging to disk at this point.
hostLoggerSubscription = HostLogger.Subscribe(new HostLoggerAdapter(
languageServer.Services.GetService<ILogger<HostLogger>>()
languageServer.Services.GetService<ILogger<HostLoggerAdapter>>()
));

// Set the workspace path from the parameters.
Expand Down

0 comments on commit 3335b32

Please sign in to comment.