Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Removing color from deployed app console logs #577

Merged
merged 4 commits into from
Jul 14, 2020

Conversation

RiskRunner0
Copy link
Contributor

Fixes #434

@dnfadmin
Copy link

dnfadmin commented Jul 13, 2020

CLA assistant check
All CLA requirements met.

…er, fixing test files to include new env variables
@@ -138,6 +141,9 @@ public static void ApplyContainerDefaults(ApplicationBuilder application, Docker
}

container.ImageTag ??= "latest";

// Disable color in the logs
project.EnvironmentVariables.Add(new EnvironmentVariableBuilder("DOTNET_LOGGING__CONSOLE__DISABLECOLORS") { Value = "true" });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be added for all docker files, just .NET projects.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah that's pretty obvious now, will fix

@jkotalik jkotalik merged commit c60541b into dotnet:master Jul 14, 2020
@jkotalik
Copy link
Contributor

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable color in logs for deployed apps
5 participants