mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
17 lines
465 B
JavaScript
17 lines
465 B
JavaScript
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);
|