selog

0.0.0 • Public • Published

SeLog

Usage

const debug = require('selog')('example')
debug('fizbuz')
debug.sub('foo') // equivalent to `selog('example:foo')`

API

  • selog(name): debug - Create a namespace
  • debug(msg, ...) - Log to the namespace
  • debug.trace - Trace to the namespace (prefixes the namespace with trace:)
  • debug.name - The name
  • debug.nameParts - The name split on colons
  • debug.parent - The parent namespace
  • debug.sub(name) - Create a sub namespace

/selog/

    Package Sidebar

    Install

    npm i selog

    Weekly Downloads

    0

    Version

    0.0.0

    License

    MIT

    Last publish

    Collaborators

    • coderpuppy
    • drewyoung1