A simple tool to create nice and colorful logs.
For pretty much everyone
npm install --save @teamteanpm2024/iste-molestiae-eaque
For nerds :]
npm i -S @teamteanpm2024/iste-molestiae-eaque
It's pretty straightforward.
var Logger = require("@teamteanpm2024/iste-molestiae-eaque");
Logger.info('This is an info log!');
Logger.error('This is an error log!');
Logger.warning('This is a warning log!');
Logger.notice('This is a notice log!');
const exception = new Error('This is an exception');
Logger.exception(exception);
// Thanks to Colen from StackOverflow for this one!
// https://stackoverflow.com/questions/2710967/how-do-i-store-complex-objects-in-javascript
const complexObject = [
{"name": "Jim's Ford Focus", "color": "white", isDamaged: true, wheels: 4},
{"name": "Bob's Suzuki Swift", "color": "green", isDamaged: false, wheels: 4},
{"name": "Alex's Harley Davidson", "color": "black", isDamaged: false, wheels: 2}
];
Logger.debug(complexObject);
Make pull requests or open issues :) !