Set up log4net in modern .NET: NuGet packages, a tested log4net.config with rolling files and level filters, ASP.NET Core ILogger integration, and SQL logging.