I've moved my new projects to .NET Core 6 but apparently there are radical changes in Program and Startup.cs files.
I would like to use log4net in every Controller with Dependency Injection but I couldn't find any tutorial about Logging in .NET Core 6.
What I tried:
builder.Services.AddLogging();
builder.Logging.AddProvider(loggerProvider);
What should I write to use ILogger in Controllers?