errloc

0.1.0 • Public • Published

Errloc

Errloc is an error logger that tracks every line processing an error (not just the one producing the error).

Install

npm install errloc

Usage

Start with

var errloc = require('errloc')();

for the default format filename:line, or with

var errloc = require('errloc')('File %s, line %s.');

to provide a custom format.

errloc(callback) expects a callback(err, ...) and modifies it to log the file name and line number in case err is not null.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i errloc

Weekly Downloads

2

Version

0.1.0

License

none

Last publish

Collaborators

  • thomash