Hello,
Microsoft.Extensions.Logging.Log4Net.AspNetCore
supports .Net 8, and in general .Net 9 is backward compatible. You could see this in the Nuget Package details page. For the Log function, it is more recommended to refer to this document and use Microsoft.Extensions.Logging
to implement the log function adapted to .net 9.0.
Update:
It's not clear what the overall problem is you're trying to solve. You have multiple linked threads with information spread across hundreds of comments. There have been several good answers which didn't help your underlying scenario. This is beyond the scope of what we can help you with in the forums.
If you need further help please open a support ticket at https://aka.ms/mauisupport and somebody can work with you directly to understand the overall problem and help you solve it.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.