@atomic-utils/logger
Version:
19 lines (18 loc) • 592 B
TypeScript
import { LogLevel } from '@node-dlc/logger';
import * as Sentry from '@sentry/node';
export declare class SentryTransport implements ITransport {
constructor(nodeOptions?: Sentry.NodeOptions & {
transport?: any;
}, tags?: ITag[]);
write(line: string, level?: LogLevel, error?: Error): void;
private parseLogLevel;
private extractErrorMessage;
}
export interface ITransport {
write(line: string, level?: LogLevel, error?: Error): void;
}
export interface ITag {
key: string;
value: string;
}
export declare const SentryHandlers: typeof Sentry.Handlers;