Skip to content

Document the logger (and maybe change it?) #16

@wraithan

Description

@wraithan

The logger is a console instance by default. This means, to be safe, the user must implement:

> Object.keys(console)
[ 'log',
  'info',
  'warn',
  'error',
  'dir',
  'time',
  'timeEnd',
  'trace',
  'assert',
  'Console' ]

A logger API could be something like function logger (level, message) {} or something like that. It would require your own calls to util.format instead of relying on the logger to do it, but you could easily abstract that in your code.

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