moved streams code around, added stub for DateRollingFileStream
This commit is contained in:
16
lib/streams/DateRollingFileStream.js
Normal file
16
lib/streams/DateRollingFileStream.js
Normal 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);
|
||||
Reference in New Issue
Block a user