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

1.4.12 • Public • Published

logger

Generic logger that wraps console.log with support of log levels and formatting messages.

Features:

  1. Create a new named logger new Logger(name, LogLevel.INFO)
  2. Formats log messages: [name] [level]: message
  3. Supports additional arguments just like console log
  4. Change the loglevel with logger.setLogLevel(LogLevel)

Building

Run nx build logger to build the library.

Running unit tests

Run nx test logger to execute the unit tests via Jest.

Readme

Keywords

none

Package Sidebar

Install

npm i @dynamic-labs/logger

Weekly Downloads

8,632

Version

1.4.12

License

MIT

Unpacked Size

249 kB

Total Files

7

Last publish

Collaborators

  • packaging-at-dynamic-labs