CrabDude / trycatch

An asynchronous domain-based exception handler with long stack traces for node.js
MIT License
246 stars 17 forks source link

Configure how to print lines #13

Closed Raynos closed 11 years ago

Raynos commented 12 years ago

Sometimes I want to do

trycatch.colors({
    "core": "dont print"
    , "node_modules": "dont print"
    , "other": "white"
    , "test": {
        color: "green"
        , regexp: /test/
    }
})

Which basically means ignore all that node & node_modules noise in those massive stack traces and just show me my code in white. Also for anything that matches /test/ print it in green.

CrabDude commented 11 years ago

Addressed by https://github.com/CrabDude/trycatch/pull/14