0.8.0 • Published 10 years ago

treelog v0.8.0

Weekly downloads
11
License
ISC
Repository
github
Last release
10 years ago

Treelog prints out your logs along with the functions they were called from, and arranges them in a tree based on a stacktrace:

var log = require("treelog")

function makeBreakfast() {
  log("so hungry")
  toast()
}

function toast() {
  log("bread is soft")
  stove.on()
  log("so toasty!")
}

var stove = {
  on: function() {
    log("ignition!")
  }
}

makeBreakfast()

will log out:

 makeBreakfast → - - - - - - - - - - - - -   so hungry
 - toast → - - - - - - - - - - - - - - - -   bread is soft
 - - Object.stove.on → - - - - - - - - - -   ignition!
 - toast → - - - - - - - - - - - - - - - -   so toasty!
0.8.0

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago