caterpillar
Advanced tools
Comparing version 2.0.5 to 2.0.6
// Import | ||
var level = process.argv.indexOf('-d') === -1 ? 6 : 7; | ||
var logger = new (require('./').Logger)({level:level}); | ||
var filter = new (require('caterpillar-filter').Filter)(); | ||
var human = new (require('caterpillar-human').Human)(); | ||
var logger = require('./').createLogger({level:level}); | ||
var filter = require('caterpillar-filter').createFilter(); | ||
var human = require('caterpillar-human').createHuman(); | ||
@@ -7,0 +7,0 @@ // Pipe logger output to filter, then filter output to stdout |
@@ -64,2 +64,3 @@ // Generated by CoffeeScript 1.6.3 | ||
function Logger() { | ||
this.log = __bind(this.log, this); | ||
_ref = Logger.__super__.constructor.apply(this, arguments); | ||
@@ -66,0 +67,0 @@ return _ref; |
{ | ||
"title": "Caterpillar", | ||
"name": "caterpillar", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Caterpillar is the ultimate logging system for Node.js, based on transform streams you can log to it and pipe the output off to different locations, including some pre-made ones. Caterpillar also supports log levels according to the RFC standard, as well as line, method, and file fetching for messages. You can even use it in web browsers with caterpillar-browser.", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/caterpillar", |
@@ -78,3 +78,3 @@ | ||
<img src="https://github.com/bevry/caterpillar/raw/master/media/caterpillar-normal.png"/> | ||
<img src="http://d.pr/i/DBFD+"/> | ||
@@ -84,5 +84,10 @@ | ||
<img src="https://github.com/bevry/caterpillar/raw/master/media/caterpillar-debug.png"/> | ||
<img src="http://d.pr/i/IZ8I+"/> | ||
Result with log level 7 (debug) in the browser with the [Browser Transform](https://github.com/bevry/caterpillar-browser) | ||
<img src="http://d.pr/i/SK8d+"> | ||
### Transform API, extends [stream.Transform](http://nodejs.org/api/stream.html#stream_class_stream_transform) | ||
@@ -89,0 +94,0 @@ |
18203
222
217