question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logs include control characters (in place of coloring) in Visual Studio output window when using Docker

See original GitHub issue

Repro Steps

  1. Install Docker for Windows Beta and Docker Tools for Visual Studio
  2. New ASP.NET Core Application
  3. Add -> Docker Support
  4. 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.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 GET http://docker/  

CC: @glennc

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

16reactions
neybarcommented, Nov 20, 2017

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?

2reactions
pakrymcommented, Nov 15, 2018

If you are using WebHostBuilder.CreateDefault setting ASPNETCORE_LOGGING__CONSOLE__DISABLECOLORS environment variable to true would disable colors too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found