Under this issue, I want to fix the inconsistent and incorrect (@neodx/log/http doesn't disable colors in production) default behavior of "colors" and simplify its management from the outside.
Where are colors being used now?
@neodx/log/node
pretty target and default behavior
printPrettyError submodule (extends from pretty)
@neodx/log/http
Expectations:
Everything should follow the same default rule - colors are disabled in production.
Simplify the colors parameter to accept values of 'auto', boolean, or Colors.
Good to try:
Enhance the createLogger API in @neodx/log/node to be more high-level, forward the colors parameter to global settings.
Under this issue, I want to fix the inconsistent and incorrect (
@neodx/log/http
doesn't disable colors in production) default behavior of "colors" and simplify its management from the outside.Where are colors being used now?
@neodx/log/node
pretty
target and default behaviorprintPrettyError
submodule (extends frompretty
)@neodx/log/http
Expectations:
Good to try:
createLogger
API in @neodx/log/node
to be more high-level, forward the colors
parameter to global settings.