Description
var builder = WebApplication.CreateSlimBuilder(args);
builder.Logging.ClearProviders();
if (ServiceUtil.IsWindowsService() == false)
{
builder.Logging.AddConsole();
}
If the above code is installed and run as a windows service after AOT, the log will always be written to ETW, but the JIT compilation behaves correctly.
Reproduction Steps
- clear all loger providers.
- build as AOT
- install and run as windows service
Expected behavior
Logs are not written to ETW
Actual behavior
Logs allway written to ETW
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Description
If the above code is installed and run as a windows service after AOT, the log will always be written to ETW, but the JIT compilation behaves correctly.
Reproduction Steps
Expected behavior
Logs are not written to ETW
Actual behavior
Logs allway written to ETW
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response