mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
class BaseService {
|
|
logger() {
|
|
if (this.instanceLogger_) return this.instanceLogger_;
|
|
if (!BaseService.logger_) throw new Error('BaseService.logger_ not set!!');
|
|
return BaseService.logger_;
|
|
}
|
|
|
|
setLogger(v) {
|
|
this.instanceLogger_ = v;
|
|
}
|
|
}
|
|
|
|
BaseService.logger_ = null;
|
|
|
|
module.exports = BaseService;
|