@nodescript/logger
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Logger

Simple and minimalistic logger interface and implementation.

Highlights

  • 🔥 Zero dependencies
  • 🗜 Tidy and compact
  • 💻 Works in browser
  • 📦 Console and Logfmt implementations in the box

Usage

const logger = new ConsoleLogger();
// Logs with level "below" warn (debug, info) will not be emitted
logger.level = 'warn';
logger.info('Something happened, nothing to see here');
logger.warn('User account has been suspended', { accountId: '123' });

Dependents (8)

Package Sidebar

Install

npm i @nodescript/logger

Weekly Downloads

51

Version

2.0.6

License

ISC

Unpacked Size

21 kB

Total Files

23

Last publish

Collaborators

  • mattscarthsaunders
  • danielolaviobr
  • inca