@travelerdev/nestjs-sentry
Version:
Provides an injectable sentry.io client to provide enterprise logging of nestjs modules
19 lines • 1 kB
TypeScript
import { ConsoleLogger } from '@nestjs/common';
import { OnApplicationShutdown } from '@nestjs/common';
import * as Sentry from '@sentry/node';
import { SentryModuleOptions } from './sentry.interfaces';
export declare class SentryService extends ConsoleLogger implements OnApplicationShutdown {
readonly opts?: SentryModuleOptions | undefined;
app: string;
private static serviceInstance;
constructor(opts?: SentryModuleOptions | undefined);
static SentryServiceInstance(): SentryService;
log(message: string, context?: string, asBreadcrumb?: boolean): void;
error(message: string, trace?: string, context?: string): void;
warn(message: string, context?: string, asBreadcrumb?: boolean): void;
debug(message: string, context?: string, asBreadcrumb?: boolean): void;
verbose(message: string, context?: string, asBreadcrumb?: boolean): void;
instance(): typeof Sentry;
onApplicationShutdown(): Promise<void>;
}
//# sourceMappingURL=sentry.service.d.ts.map