constructor(@Optional() private logger: Logger) { if (this.logger) { this.logger.log(some_message); } }