-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-NativeAOT-coreclrneeds-author-actionAn issue or pull request that requires more info or actions from the author.An issue or pull request that requires more info or actions from the author.
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
area-NativeAOT-coreclrneeds-author-actionAn issue or pull request that requires more info or actions from the author.An issue or pull request that requires more info or actions from the author.
Type
Projects
Status
No status