logchop

0.1.8 • Public • Published

LogChop

Add this to the very top of your Node.js web app...

require('logchop').start()

...and you'll magically get web app performance metrics.

How about timing some gnarly piece of code?

var logchop = require('logchop')
var event = logchop.event('Gnarly Code')

// gnarly code

event.stop()

What about an asynchronous function?

var logchop = require('logchop')

// do it from the outside by wrapping the callback
someAsyncMethod( logchop.event('My Asyc Method').until( function (err, result) {
})

// or do from the inside
function someAsyncMethod(callback) {
  callback = logchop.event('My Asyc Method').until(callback)
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.8
    1
    • latest

Version History

Package Sidebar

Install

npm i logchop

Weekly Downloads

9

Version

0.1.8

License

none

Last publish

Collaborators

  • twobitfool