CartoDB-SQL-API/batch/batch-logger.js
2018-05-23 17:24:48 +02:00

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;