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.

Disable color in logs for deployed apps

See original GitHub issue

Describe the bug

We pass an env-var to dotnet applications when doing tye run to disable colorization via ANSI escape codes for the console logger.

We don’t do this today for deployed applications.

To Reproduce

Deploy something, and look at the log output.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
jkotalikcommented, Jul 9, 2020

No process whenever you get to it. It’s mostly a reminder if you don’t get to it for us to consider fixing it as well. However, we’ll give you ample opportunity to try fixing it first 😄

1reaction
QueenCitySmittycommented, May 12, 2020

Np, I ran through the deployment examples the other day and they got me where I need to go for this. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable colored console output - logging
To disable color in the default logger's messages, set the NO_COLOR environment variable. So below is the output in my local when running ......
Read more >
Disable Color from the log that flaak produce : r/flask
How can i disable the color that flask print when logging a request. I get in my log files [31m characters everywhere.
Read more >
[#LOG4J2-1685] Single property to disable all color output
I am deploying an app to a Windows server. The app will write logs to standard output which will then be captured by...
Read more >
View Your Logs In Colour
When it's not, they disable colour output. Bunyan & Pino follow this approach. Colour file capture with Bunyan requires the --color argument.
Read more >
NO_COLOR: disabling ANSI color output by default
Software Description Date / Version Supported alogview Android logcat Filter 2018‑10‑31 Ammonite Scala Scripting 2017‑07‑03 / 1.0.0 Ansible IT automation system 2021‑04‑26 / 2.11.0
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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