File tree Expand file tree Collapse file tree 2 files changed +10
-36
lines changed Expand file tree Collapse file tree 2 files changed +10
-36
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ import * as Sentry from "@sentry/node";
55// @ts -ignore: missing type definitions
66import { dummyLayout } from "log4js/lib/layouts" ;
77
8- import type { SeverityLevel , User } from "@sentry/node/types" ;
9- import type { NodeClientOptions } from "@sentry/node/types/types" ;
8+ import type {
9+ SeverityLevel ,
10+ User ,
11+ } from "@sentry/node" ;
12+ import type { NodeClientOptions } from "@sentry/node/build/types/types" ;
1013import type {
1114 AppenderFunction ,
1215 LayoutFunction ,
@@ -28,6 +31,10 @@ export interface Config extends Partial<NodeClientOptions> {
2831 * Sentry user data for scope setting
2932 */
3033 user ?: User ;
34+ /**
35+ * Levels to be reported to Sentry.
36+ */
37+ levels ?: SentryAppenderLevels [ ] ;
3138}
3239
3340declare module "log4js" {
@@ -95,9 +102,9 @@ export function sentry(
95102}
96103
97104export class ConfigError extends Error {
98- override name = "ConfigError" ;
99105 constructor ( msg : string , cause ?: unknown ) {
100106 super ( msg ) ;
107+ this . name = this . constructor . name ;
101108 this . cause = cause ;
102109 }
103110}
You can’t perform that action at this time.
0 commit comments