Skip to content

Add option to enable/disable logging per call #30

@pilafmon

Description

@pilafmon

It would be convenient to turn on or off logging (especially for debugging) with something like:

fetchJson.enableLogger();
fetchJson.get(url).then(handleData);                  //call is logged
fetchJson.get(url, { log: false }).then(handleData);  //call is NOT logged

See the two instances of if (fetchJson.logger) in fetch-json.ts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions