Skip to content

Feature request: attach custom formatters only to a given namespace (packages that use debug could clobber each others' custom formatters...) #804

Closed
@jedwards1211

Description

@jedwards1211

I'd like to use custom formatters in a package I'm writing, but since the formatters live on the global debug module, they could interfere with other packages that use the same module.

Wouldn't it be better if we could attach the formatters to a specific debugger created by require('debug')('myNamespace') rather than on require('debug') itself?

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