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
publicclassWelcomeService:IGreetService{readonlyILogger<WelcomeService>_logger;publicWelcomeService(ILogger<WelcomeService>logger){_logger=logger;}publicstringGreet(){_logger.LogError("Error Will Robinson!");return"Welcome!";}}
When using
ParallelApplicationPipelinesExtensions
, log messages originating from an application path do not show in the console.Repro Steps
WelcomeService.cs
dotnet run
from the console.Expected Behavior
I expect to see the "Error Will Robinson" message in the console output.
Actual Behavior
I only see log messages from ASP.NET Core itself.
Extra Information
Note that if you change the
Main
method inProgram.cs
like so...That log message works. It seems to me that the logging services or configuration are not carried over to the application paths.
/cc @filipw
The text was updated successfully, but these errors were encountered: