Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to turn off colors for logger #82

Open
mnmkng opened this issue Oct 29, 2020 · 2 comments
Open

Add option to turn off colors for logger #82

mnmkng opened this issue Oct 29, 2020 · 2 comments
Labels
t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@mnmkng
Copy link
Member

mnmkng commented Oct 29, 2020

Some users with themed terminals are seeing invisible characters, we should allow the option to turn colors off.

Important!

The option needs to work for all child loggers, by setting it on the parent logger. E.g. when in SDK

const { log } = Apify.utils;
log.disableColors();

All existing log instances everywhere in the SDK, that were created of children of this parent instance, must also have their colors turned off.

@B4nan
Copy link
Member

B4nan commented May 17, 2021

FYI colors can be (globally) disabled via FORCE_COLOR=0 env var.

@mnmkng
Copy link
Member Author

mnmkng commented May 17, 2021

Hmm, interesting. cc @Jeromearsene, the creator of the original issue.

@B4nan B4nan added the t-tooling Issues with this label are in the ownership of the tooling team. label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants