NestJS Logger:显示行号

时间:2019-05-27 22:29:21

标签: javascript typescript express nestjs

@Controller('v2/foobar')
export class FoobarController {

    private readonly logger = new Logger(FoobarController.name);

    constructor(readonly foobarService: FoobarService,
                readonly persistenceManager: PersistenceManager) {
    }
}

鉴于根据最佳做法设置的记录器,我如何支持在NestJS中显示源文件的行号?

0 个答案:

没有答案