1.0.2 • Published 10 years ago

wistie v1.0.2

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
10 years ago

#Wistie Wistie reformats stdin that is piped to it. I was having problems distinguishing log entries from multiple servers that were aggregated using Apache Flume.

Install wistie globally

npm install -g wistie

Using any module that logs to stdout you can pipe it to Wistie.

node app.js | wistie

Wistie will check the directory that it's run in for a wistie_formatter.js that exports a formatting function.

module.exports = function(line) {
	return "--Some Prepend-- "+line+"\n";
}

The result

--Some Prepend-- [2014-06-05 23:09:33.606] [INFO] app - mode:development

--Some Prepend-- [2014-06-05 23:09:33.608] [WARN] app - Missing SSL config files. (Error: ENOENT, no such file or directory '/dev/site/sslcert/server.key')

--Some Prepend-- [2014-06-05 23:09:33.620] [INFO] app - Express HTTP server listening on port 8080
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago