HF RL Explorer

ASP.NET Core Web API Logging from a Static Class

ASP.NET Core Web API Logging from a Static Class: a task in Terminal-Lego-15k (Harbor dataset). You need to implement logging functionality in a static class within an ASP.NET Core Web API application. The challenge is that static classes cannot use dependency injection directly, and you cannot…

The task

You need to implement logging functionality in a static class within an ASP.NET Core Web API application. The challenge is that static classes cannot use dependency injection directly, and you cannot use a static class as a type argument for `ILogger<T>` because "Static types cannot be used as type arguments."

Part of PrimeIntellect/Terminal-Lego-15k.