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