Last 12 weeks · 0 commits
1 of 6 standards met
Repository: tj/jog. Description: JSON document logging & filtering inspired by loggly for node.js Stars: 131, Forks: 10. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: http://visionmedia.github.com/jog Open PRs: 3, open issues: 6. Last activity: 13y ago. Community health: 28%. Top contributors: tj, cpsubrian, danmilon, alessioalex, jfhbrook, TooTallNate.
Introduces the concept of 'formatters' and ALL CLI output runs through a formatter. A formatter is merely a commonjs module that exports an object. The object should follow the following signature: Formatters can live in three possible locations: This allows someone to maintain formatters that they like to use on either a per-machine, or per-project basis. Awesome! Also, the formatters are loaded in that order, so project formatters can override machine ones, or core ones. Four core formatters are included: json color short default You use the formatters via the command-line option. is aliased to is aliased to I think this is a really flexible approach. For example you could create a formatter that saves images, or a formatter that renders a CLI bar chart, or whatever.
Fixed bug with undefined options var when stream() called with no param.