Added node modules

This commit is contained in:
John Crepezzi
2012-02-06 14:09:01 -05:00
parent ca9d4c18f7
commit d1e0644a4e
575 changed files with 77900 additions and 6 deletions

18
node_modules/winston/examples/couchdb.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
var winston = require('../lib/winston');
//
// Create a new winston logger instance with two tranports: Console, and Couchdb
//
//
// The Console transport will simply output to the console screen
// The Couchdb tranport will perform an HTTP POST request to the specified CouchDB instance
//
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)(),
new (winston.transports.Couchdb)({ 'host': 'localhost', 'db': 'logs' })
// if you need auth do this: new (winston.transports.Couchdb)({ 'user': 'admin', 'pass': 'admin', 'host': 'localhost', 'db': 'logs' })
]
});
logger.log('info', 'Hello webhook log files!', { 'foo': 'bar' });

17
node_modules/winston/examples/webhook-post.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
var winston = require('../lib/winston');
//
// Create a new winston logger instance with two tranports: Console, and Webhook
//
//
// The Console transport will simply output to the console screen
// The Webhook tranports will perform an HTTP POST request to an abritrary end-point ( for post/recieve webhooks )
//
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)(),
new (winston.transports.Webhook)({ 'host': 'localhost', 'port': 8080, 'path': '/collectdata' })
]
});
logger.log('info', 'Hello webhook log files!', { 'foo': 'bar' });