You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In .NET, the method CreateLogger<T>(src) yields an instance of ILogger<T> and consistently generates a fresh Logger<T> object. On the other hand, invoking CreateLogger(typeof(T))(src) results in a non-generic ILogger instance and defers to the factory's CreateLogger method, usually without creating a new instance.
It would be beneficial to modify this behavior within the FlightSqlServerbase class to prevent the allocation of a new logger with each request.
Component(s)
C#
The text was updated successfully, but these errors were encountered:
### What changes are included in this PR?
- Replacing `CreateLogger<FlightSqlServer>` with `CreateLogger(typeof(FlightSqlServer))`
### Are these changes tested?
It is not gonna change any behavior
### Are there any user-facing changes?
No
* GitHub Issue: #40553
Authored-by: Ali Khalili <ali.khalili@truelayer.com>
Signed-off-by: Curt Hagenlocher <curt@hagenlocher.org>
Describe the enhancement requested
In .NET, the method
CreateLogger<T>
(src) yields an instance ofILogger<T>
and consistently generates a freshLogger<T>
object. On the other hand, invokingCreateLogger(typeof(T))
(src) results in a non-genericILogger
instance and defers to the factory'sCreateLogger
method, usually without creating a new instance.It would be beneficial to modify this behavior within the
FlightSqlServer
base class to prevent the allocation of a new logger with each request.Component(s)
C#
The text was updated successfully, but these errors were encountered: