-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#50575 colorbehavior default should disable colors in android/applemobile #74496
#50575 colorbehavior default should disable colors in android/applemobile #74496
Conversation
Tagging subscribers to this area: @dotnet/area-extensions-logging |
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -157,8 +158,12 @@ private static string GetLogLevelString(LogLevel logLevel) | |||
|
|||
private ConsoleColors GetLogLevelConsoleColors(LogLevel logLevel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to have a mobile specific .cs file that implemented a function that returned true for disableColors
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't build RID specific versions of these libraries, and don't really plan on adding them. It impacts the build times of these libraries.
See also #53900.
cc @ViktorHofer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we don't want OOB libraries to have runtime specific build configurations. Instead they are better of using runtime configurations when possible.
src/libraries/Microsoft.Extensions.Logging.Console/src/SimpleConsoleFormatter.cs
Outdated
Show resolved
Hide resolved
src/libraries/Microsoft.Extensions.Logging.Console/src/SimpleConsoleFormatter.cs
Show resolved
Hide resolved
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger |
Fix #50575 and #51398