- $ npm install Logify
Pack all concole message for easy debug.
Log level | Mean | Note | icon |
---|---|---|---|
LOG | Develop adjust | console.log | none |
INFO | Record the data from api | console.info | i |
WARN | Warning | console.warn | ! |
ERROR | The error message | console.error | x |
- Help to find the bug.
- Contribute to module testing.
- Yes, it will reduce the speed, though only negligibly.
- But, don't use it as it's too easy for a person to read your logs.
let debug = PackConsole;
debug.error('ERROR'); // 'ERROR'
- Style the console
- suffix the console
- elastic
- sentry