Skip to content

Repository files navigation

Logging Tests

Lightweight informative modern console logging.

logging

Install

pnpm add logging

Features

  • Simple.
  • Log levels.
  • Nice coloring.

Usage

// ESM onlyimportcreateLoggerfrom'logging';constlogger=createLogger('Feature');logger.info('Interesting');// -> [ Feature ] Interestinglogger.warn('Hmmm...',{ details });// -> [ WARNING Feature ] Hmmm... { details object }logger.error('Not good.','Not good at all.',{ err },{ context },{ etc });// -> [ ERROR Feature ] Not good. Not good at all. { err } { context } ...// uses the debug module, use DEBUG=* or DEBUG=FeatureName to see these items.logger.debug('Interesting');// -> [ Feature ] Interesting

About

Lightweight informative modern console logging.

Resources

Stars

57 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages