Package Exports
- @dynamic-labs/logger
- @dynamic-labs/logger/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dynamic-labs/logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
logger
Generic logger that wraps console.log with support of log levels and formatting messages.
Features:
- Create a new named logger
new Logger(name, LogLevel.INFO) - Formats log messages:
[name] [level]: message - Supports additional arguments just like console log
- 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.