@whitetrefoil/debug-log
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Debug Log

A log utility library base on "debug".

Important

If your code isn't targeting the latest syntax spec of JS / ES, please use something like babel to transfer this library.

Usage

Notice: Debug logs only show when NODE_ENV is 'development'.

import { setFilter, getLogger } from '@whitetrefoil/debug-log'

setFilter('/*')

const { debug } = getLogger('/src/my/file.ts')

debug('Some debug message')

Changelog & Roadmap

v0.2.0

  • Major dependencies update.
  • Remove setFilter() & removeFilter().
  • Fix process is undefined.

v0.1.2

  • Upgrade dependencies to suppress Github.

v0.1.1

  • Reset enable status after set filter (fix issue when there's other modules using "debug", e.g. koa).

v0.1.0

  • Initial release.

Readme

Keywords

none

Package Sidebar

Install

npm i @whitetrefoil/debug-log

Weekly Downloads

0

Version

0.2.0

License

Unlicense

Unpacked Size

4.61 kB

Total Files

5

Last publish

Collaborators

  • whitetrefoil