log-your-err

1.0.3 • Public • Published

log-your-err

Node App that records all the application errors and logs it to a CSV file during the app's production, coz you know...console.log( ) is bad.

Documentation

This package, logs all your errors that rise during production or testing in a separate "Log" folder, in the form of CSV files listing out all the errors that rose.

Log() function gives you options to send your message while the error is caused.

Usage

import { Log } from 'log-your-err';

Log("Your session id", 
    "Your Project Name", 
    "Error that's to be logged", 
    "Message for developers", 
    "Data causing the err")

all the variables mentioned above are optional,but remember the order when using them.

Working

const Log = require('./Logger.js').Log;


Log("Session-1234","Project1","Error","This has a msg from kunal");  
Log("Session-1234","Project1","Error");  

Screenshot 2020-04-22 at 5 22 12 AM

Readme

Keywords

Package Sidebar

Install

npm i log-your-err

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

18.8 kB

Total Files

9

Last publish

Collaborators

  • eyeamkd