selog
v0.0.0
Published
A wrapper around debug for easier nesting
Downloads
2
Readme
SeLog
Usage
const debug = require('selog')('example')
debug('fizbuz')
debug.sub('foo') // equivalent to `selog('example:foo')`
API
selog(name): debug
- Create a namespacedebug(msg, ...)
- Log to the namespacedebug.trace
- Trace to the namespace (prefixes the namespace withtrace:
)debug.name
- The namedebug.nameParts
- The name split on colonsdebug.parent
- The parent namespacedebug.sub(name)
- Create a sub namespace