CartoDB-SQL-API/batch/batch-logger.js

17 lines
259 B
JavaScript
Raw Normal View History

'use strict';
2018-06-08 16:59:34 +08:00
const Logger = require('../app/services/logger');
2018-06-08 16:59:34 +08:00
class BatchLogger extends Logger {
2018-05-23 23:24:48 +08:00
constructor (path, name) {
super(path, name);
}
2018-05-23 23:24:48 +08:00
log (job) {
return job.log(this.logger);
}
2018-05-23 23:24:48 +08:00
}
2018-05-23 23:24:48 +08:00
module.exports = BatchLogger;