Skip to content

Reimplementation #95

@Uzlopak

Description

@Uzlopak

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

If I would need to implement this function I would implement it differently. E.g. calling warning.emit('XYZ') makes it necessary to lookup the existing warnings.

From the API usage I would do it like this:

const warning = require('process-warning')()

const FSTWRN001 = warning.create('FastifyWarning', 'FSTWRN001', 'The %s schema for %s: %s is missing. This may indicate the schema is not well specified.', { unlimited: true })

FSTWRN001.emit()

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