Skip to content

output for validate is printed with yellow warning prefix #363

@MrBartusek

Description

@MrBartusek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions