mirror of
https://github.com/nestjs/nest.git
synced 2026-10-28 17:56:01 +08:00
10 lines
233 B
TypeScript
10 lines
233 B
TypeScript
import { Logger } from '@nestjs/common';
|
|
|
|
export class ExceptionHandler {
|
|
private static readonly logger = new Logger(ExceptionHandler.name);
|
|
|
|
public handle(exception: Error) {
|
|
ExceptionHandler.logger.error(exception);
|
|
}
|
|
}
|