|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
var assert = require('assert'),
|
|
|
|
|
vows = require('vows'),
|
|
|
|
|
sandbox = require('sandboxed-module');
|
|
|
|
|
"use strict";
|
|
|
|
|
var assert = require('assert')
|
|
|
|
|
, vows = require('vows')
|
|
|
|
|
, sandbox = require('sandboxed-module');
|
|
|
|
|
|
|
|
|
|
function makeTestAppender() {
|
|
|
|
|
return {
|
|
|
|
@ -12,7 +13,7 @@ function makeTestAppender() {
|
|
|
|
|
},
|
|
|
|
|
appender: function() {
|
|
|
|
|
var self = this;
|
|
|
|
|
return function(logEvt) { self.logEvt = logEvt; }
|
|
|
|
|
return function(logEvt) { self.logEvt = logEvt; };
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
@ -114,12 +115,14 @@ vows.describe('log4js configure').addBatch({
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
log4js = sandbox.require('../lib/log4js',
|
|
|
|
|
log4js = sandbox.require(
|
|
|
|
|
'../lib/log4js',
|
|
|
|
|
{
|
|
|
|
|
requires: {
|
|
|
|
|
'fs': fakeFS,
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
delete process.env.LOG4JS_CONFIG;
|
|
|
|
|
return fileRead;
|
|
|
|
|
},
|
|
|
|
|