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