@thisisabdus/logger

0.0.0-alpha • Public • Published

Logger

Usage:

const Logger = require('@thisisAbdus/logger');
const logger = new Logger(options);

logger.log('message', __filename);

Tips:

  • If you're logging an error, just pass the error instance. Logger will extract the error message from error stackTrace or Error.message

  • You can pass objects and arrays but no functions (as it just shows [Function: nameOfFunction]) and it's kinda irrelevent to log that.

Why this Library? Because, I had no internet connection for around a week(state-wide Internet ban). So, I just wrote it(for fun and time-pass).

Package Sidebar

Install

npm i @thisisabdus/logger

Weekly Downloads

0

Version

0.0.0-alpha

License

MIT

Unpacked Size

8.59 kB

Total Files

7

Last publish

Collaborators

  • thisisabdus