We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c50cd4 commit eb49552Copy full SHA for eb49552
packages/node/src/integrations/winston.ts
@@ -18,7 +18,7 @@ interface WinstonTransportOptions {
18
*
19
* @example
20
* ```ts
21
- * const transport = Sentry.createSentryWinstonTransport(Transport, {
+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {
22
* // Only capture error and warn logs
23
* levels: ['error', 'warn'],
24
* });
@@ -43,10 +43,10 @@ interface WinstonTransportOptions {
43
* const winston = require('winston');
44
* const Transport = require('winston-transport');
45
46
- * const transport = Sentry.createSentryWinstonTransport(Transport);
+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);
47
48
* const logger = winston.createLogger({
49
- * transports: [transport],
+ * transports: [new SentryWinstonTransport()],
50
51
* ```
52
*/
0 commit comments