CartoDB-SQL-API/batch/batch-logger.js
2018-06-08 10:59:34 +02:00

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;