log
Simple and filterable logger
Install
npm install --save smpllog
How to use it
const log = ; // Log like this:// Debug level;// Warn level;// Error level;// Fatal level; // Set the logging level.// This will set the global level state.log; // Setting level to error will make the log to omit all// logging below the error level order. See order below. // There are four levels of logging and ordered like this:const level_order = 'fatal' 'error' 'warn' 'debug'; // You can also change the logger write streamslog;
Features to come
- RabbitMQ remote as logger
- Prettify logged objects