CartoDB-SQL-API/batch/batch-logger.js
2018-05-28 11:18:30 +02:00

20 lines
352 B
JavaScript

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