moved streams code around, added stub for DateRollingFileStream

This commit is contained in:
Gareth Jones
2012-09-05 10:58:28 +10:00
parent cbc1dd32f9
commit be1272cd7c
9 changed files with 349 additions and 271 deletions

View File

@@ -0,0 +1,16 @@
var BaseRollingFileStream = require('./BaseRollingFileStream'),
util = require('util');
module.exports = DateRollingFileStream;
function DateRollingFileStream(filename, pattern, options) {
if (typeof(pattern) === 'object') {
options = pattern;
pattern = null;
}
this.pattern = pattern || 'yyyy-mm-dd';
DateRollingFileStream.super_.call(this, filename, options);
}
util.inherits(DateRollingFileStream, BaseRollingFileStream);