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
Currently the StandardLogfile contains properties to easily and fluently get new log event instances by loglevel. Unfortunately, as soon as the StandardLogfile instance is handed over as ILogfileProxy<StandardLoglevel> these properties are no longer accessible.
These properties should be replaced in favor of extension methods on ILogfileProxy<StandardLoglevel> eventhough it's a slight loss of fluent syntax as paranthesis are required to get a new log event instance. Maybe it's even cleaner that way.
As an alternative, extension properties could be introduced as soon as they become available (see dotnet/roslyn#11159).
The text was updated successfully, but these errors were encountered:
KristianVirkus
changed the title
Make StandardLogfile properties for loglevels extension methods
Convert StandardLogfile loglevels properties to extension methods
Jul 12, 2019
Currently the
StandardLogfile
contains properties to easily and fluently get new log event instances by loglevel. Unfortunately, as soon as theStandardLogfile
instance is handed over asILogfileProxy<StandardLoglevel>
these properties are no longer accessible.These properties should be replaced in favor of extension methods on
ILogfileProxy<StandardLoglevel>
eventhough it's a slight loss of fluent syntax as paranthesis are required to get a new log event instance. Maybe it's even cleaner that way.As an alternative, extension properties could be introduced as soon as they become available (see dotnet/roslyn#11159).
The text was updated successfully, but these errors were encountered: