@chia-carbon/core-registry-logger
v1.0.13
Published
Custom logger for core registry projects
Downloads
151
Readme
Core Registry Logger
example usage
const Logger = require('@chia-carbon/core-registry-logger');
const logger = new Logger({
projectName: 'tokenization-engine',
logLevel: 'info',
packageVersion: '1.0.0'
});
Log Levels
The following error levels can be used in your project. These can be used in any way you like, but the original design concept is as follows:
fatal
: Only show fatal errorserror
: Shows all errorstask_error
: All errors including from async taskswarn
: All errors and warningsinfo
: Warnings, errors, plus informative messagestask
: Similar to info, but includes async tasksdebug
: Verbose logging with additional troubleshooting messagestrace
: Show all output