20 lines
333 B
JavaScript
20 lines
333 B
JavaScript
'use strict';
|
|
|
|
const Logger = require('../app/services/logger');
|
|
|
|
class BatchLogger extends Logger {
|
|
constructor (path, name) {
|
|
super(path, name);
|
|
}
|
|
|
|
log (job) {
|
|
return job.log(this.logger);
|
|
}
|
|
|
|
reopenFileStreams () {
|
|
this.logger.reopenFileStreams();
|
|
}
|
|
}
|
|
|
|
module.exports = BatchLogger;
|