This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const log4js = require('../lib/log4js'); | |
// NOTE: for PM2 support to work you'll need to install the pm2-intercom module | |
// `pm2 install pm2-intercom` | |
log4js.configure({ | |
appenders: { | |
out: { type: 'file', filename: 'pm2logs.log' } | |
}, | |
categories: { | |
default: { appenders: ['out'], level: 'info' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assert = require('assert'); | |
var expected = require('posix').cat('test.xml').wait(); | |
var actual = ''; | |
process.stdio.addListener("data", function(data) { | |
actual += data; | |
process.stdio.writeError("Chunk length: "+data.length+"\n"); | |
process.stdio.writeError("-----------------------------\n"); | |
process.stdio.writeError(data); | |
process.stdio.writeError("\n-----------------------------\n"); |