Sha256: 0d801eb84be53549b39463759849e1f5a32fda95d7f5292f47c906006c4633f2
Contents?: true
Size: 583 Bytes
Versions: 21
Compression:
Stored size: 583 Bytes
Contents
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' });
Version data entries
21 entries across 21 versions & 2 rubygems