Log utils, very readable and clean logs
Very simple code Modern code Junior friendly Typescript Made with 💛
yarn add @amaui/log
import AmauiLog from '@amaui/log';
// Make a new log instance
// with an optional options value
const amauiLog = new AmauiLog({
arguments: {
pre: [
'Mongo',
],
},
});
// Log any array of values
amauiLog.info(`Collection: A`, `Response: 40ms`);
// Output
// 04-04-2014 04:04:14.141 (info):
// Mongo
// Collection: A
// Response: 40ms
Install
yarn
Test
yarn test
Build
yarn build