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

output for validate is printed with yellow warning prefix #363

Open
MrBartusek opened this issue Apr 7, 2020 · 0 comments
Open

output for validate is printed with yellow warning prefix #363

MrBartusek opened this issue Apr 7, 2020 · 0 comments

Comments

@MrBartusek
Copy link

As an example take that code:

config.validate({ allowed: 'warn', output: Logger.warn });

I redirect all logs from convict to my logger (feature added in #301). The messages are something like
warning: something broke and a warning is in yellow text. The problems are that most of the loggers add own prefix like [WARNING] or something so result in messages are [WARNING] Warning: something broke (which looks funny)

The best solution will be to don't add that prefix by default

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

No branches or pull requests

1 participant