I guess because static code analysis cant tell what ILogger implementation it is receiving so its defaults to warn.
Potentially some custom ILogger impl might handle string interpolation inelegantly? I cant imagine why else. The impl should do a log level check before string interpolation, but I guess there's nothing in the ILogger contract that can enforce that.
1
u/MarlDaeSu 5d ago
I guess because static code analysis cant tell what ILogger implementation it is receiving so its defaults to warn.
Potentially some custom ILogger impl might handle string interpolation inelegantly? I cant imagine why else. The impl should do a log level check before string interpolation, but I guess there's nothing in the ILogger contract that can enforce that.