0.0.0-alpha • Published 4 years ago

@thisisabdus/logger v0.0.0-alpha

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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