1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-13 03:02:49 +00:00

updated package.json

This commit is contained in:
2016-01-04 12:25:28 -05:00
parent 4f1900baa0
commit cf95136db0
1168 changed files with 73752 additions and 26424 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' });

44
node_modules/winston/examples/custom-levels.js generated vendored Normal file
View File

@@ -0,0 +1,44 @@
/*
* custom-levels.js: Custom logger and color levels in winston
*
* (C) 2012, Nodejitsu Inc.
*
*/
var winston = require('../lib/winston');
//
// Logging levels
//
var config = {
levels: {
silly: 0,
verbose: 1,
info: 2,
data: 3,
warn: 4,
debug: 5,
error: 6
},
colors: {
silly: 'magenta',
verbose: 'cyan',
info: 'green',
data: 'grey',
warn: 'yellow',
debug: 'blue',
error: 'red'
}
};
var logger = module.exports = new (winston.Logger)({
transports: [
new (winston.transports.Console)({
colorize: true
})
],
levels: config.levels,
colors: config.colors
});
logger.data('hello')

4
node_modules/winston/examples/exception.js generated vendored Normal file
View File

@@ -0,0 +1,4 @@
var winston = require('../');
winston.handleExceptions(new winston.transports.Console({ colorize: true, json: true }));
throw new Error('Hello, winston!');

10
node_modules/winston/examples/raw-mode.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
var winston = require('../lib/winston');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({ raw: true }),
]
});
logger.log('info', 'Hello, this is a raw logging event', { 'foo': 'bar' });
logger.log('info', 'Hello, this is a raw logging event 2', { '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' });