Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Disable ASCII color codes for ASP.NET apps

Open bradygaster opened this issue 3 years ago • 1 comments
trafficstars

At what date and time did you most recently experience the problem?

Any time a customer deploys a .NET app to App Service for Linux using the ORYX images, the default log behavior emits ASCII color codes that are injected into the logs. This makes the logs quite difficult to read. This screenshot shows that the log output looks like when customers deploy an out-of-the-box ASP.NET Core app to App Service using an ORYX image:

image

Once a customer sets the ASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS environment variable to true in their App Service Configuration blade:

image

The log output is much friendlier:

image

Ideally, ORYX team could set the ASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS to true in the base image for .NET apps.

bradygaster avatar Jul 01 '22 19:07 bradygaster

Hi Brady, thank you for the feedback. We have a work item for this, we'll provide updates as soon as we have them.

william-msft avatar Jul 13 '22 18:07 william-msft

This issue seems resolved. Will be closing this issue. If this is still relevant and impacting you please open a new issue and link back to this issue for reference. Thanks @bradygaster for the fix.

simonjj avatar Jan 11 '24 20:01 simonjj