Heya! Is there any way env var to disable coloured...
# getting-started
j
Heya! Is there any way env var to disable coloured logs? I stumbled on this thread, where there is a solution with logging.yml approach, but that seems little heavy. Then there is someone proposing an env var to do just what I'm looking for, but seems the issue was closed.
The reason I'm asking for this is that we're shipping the logs to logging sytem that does not support coloured text, and we're getting all sort of odd characters i.e.
Copy code
[2m2023-02-07T13:58:33.861270Z[0m [[32m[1minfo     [0m] [1mEnvironment 'dev' is active[0m
[2m2023-02-07T13:58:54.001452Z[0m [[32m[1minfo     [0m] [1mRunning extract & load...     [0m [36mname[0m=[35mmeltano[0m [36mrun_id[0m=[35m5f64d004-0fbe-40b8-b5dc-52ce42cfa514[0m [36mstate_id[0m=[35mlocal-test[0m
Not sure why this isn't coming up in a search on the docs page 😕
j
The following configuration is available for all meltano subcommands via an environment variable:
NO_COLOR
- Set this environment variable to a truthy value (
1
,
TRUE
,
t
) to disable colored output on the command line. See
<http://no_color.org|no_color.org>
for more information.
I will try this out in a minute! Thanks!!
v
j
Found it on docs, in case anyone looking for it https://docs.meltano.com/reference/command-line-interface#global-configuration When searched for keywords
[log, color, colour]
it will not be found, tho 🤷
It works @visch! You've saved me some hours 🙂 Thank you 🍷
t
thanks for the issue @visch - seems like something is up with Algolia
should be fixed. https://docs.meltano.com/reference/command-line-interface#no-color looks like it doesn’t search list, so I just bumped it to an H3