标签: node.js mongoose nestjs sentry
我使用的是由 nestjs/common 包提供的默认记录器。所以
private readonly logger = new Logger(this.constructor.name); this.logger.error("Test"); 每当我尝试这样做时,都应该向哨兵报告错误。我怎样才能做到这一点?
private readonly logger = new Logger(this.constructor.name)
this.logger.error("Test");