Stupid simple logging for JS but with context for heavy log environments.
This is just to only pass along a single logger instance between modules and have a hierarchical way to sort and display such modules.
npm i hermodlogimport Logger from 'hermodlog';
logger = new Logger();
logger.log("Stuff");
contextLogger = logger.context('Node#4');
moduleLogger = contextLogger.module('myModule');Create a new logger instance.
Create a new context logger with the given name.
Create a new module logger with the given name.
Log a message with the given level.
Log a message with the debug level.
Log a message with the info level.
Log a message with the warn level.
Log a message with the error level.
Log a message with the fatal level.
MIT