@dynamic-labs/logger
v3.6.3
Published
A simple client side logging library used in Dynamic SDK
Downloads
74,839
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.