UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

8 lines (7 loc) • 210 B
import { Logger } from '@nestjs/common'; export class ExceptionHandler { static logger = new Logger(ExceptionHandler.name); handle(exception) { ExceptionHandler.logger.error(exception); } }