@teamteanpm2024/iste-molestiae-eaque

1.0.4 • Public • Published

Pretty Logger

A simple tool to create nice and colorful logs.

Installation

For pretty much everyone

npm install --save @teamteanpm2024/iste-molestiae-eaque

For nerds :]

npm i -S @teamteanpm2024/iste-molestiae-eaque

Usage

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);

Contribution

Make pull requests or open issues :) !

Readme

Keywords

Package Sidebar

Install

npm i @teamteanpm2024/iste-molestiae-eaque

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

16.3 kB

Total Files

5

Last publish

Collaborators

  • shivamkalsi2024