Logs include control characters (in place of coloring) in Visual Studio output window when using Docker
See original GitHub issueRepro Steps
- Install Docker for Windows Beta and Docker Tools for Visual Studio
- New ASP.NET Core Application
- Add -> Docker Support
- Debug -> Start Without Debugging
Issue
Logs in output window include garbage characters in place of coloring:
DockerTask.ps1 -WaitForUrl -Machine ''
Hosting environment: Production
Content root path: /app
Now listening on: http://*:80
Application started. Press Ctrl+C to shut down.
[0m[32minfo[39m[0m[0m[32m: Microsoft.AspNetCore.Hosting.Internal.WebHost[1][39m[0m
Request starting HTTP/1.1 GET http://docker/
CC: @glennc
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (2 by maintainers)
Top Results From Across the Web
Logs include control characters (in place of coloring) in ...
The output window does not support colors today, nor does it recognize and strip the control characters from the text. There are some...
Read more >Control Characters in output from docker-compose on ...
Hi, we use docker-compose to build and run some automated tests in Jenkins. this is my script to do so: docker-compose down --remove-orphans ......
Read more >Use the Containers window in Visual Studio
Logs tab shows the results of the docker logs command. By default, the tab shows stdout and stderr streams on a container, but...
Read more >Weird control characters from Gradle in Windows 10
I imagine this is some sort of control-characters-gone-wild where Gradle is trying to sensibly colour its output and Windows is interpreting ...
Read more >VS2019 Find Results not using Font/Color Settings
This issue is about the new Find Results Table output window that does not use the font settings for the other Find Results...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What is the status of this? We are using docker containers on AWS, and get the control characters in our logs. Makes it rather difficult to read.
If it is difficult to auto detect, could we get an Environment variable or some other way to just turn off colorizing?
If you are using
WebHostBuilder.CreateDefault
settingASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS
environment variable totrue
would disable colors too.