File tree 1 file changed +3
-3
lines changed
packages/node/src/integrations
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ interface WinstonTransportOptions {
18
18
*
19
19
* @example
20
20
* ```ts
21
- * const transport = Sentry.createSentryWinstonTransport(Transport, {
21
+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {
22
22
* // Only capture error and warn logs
23
23
* levels: ['error', 'warn'],
24
24
* });
@@ -43,10 +43,10 @@ interface WinstonTransportOptions {
43
43
* const winston = require('winston');
44
44
* const Transport = require('winston-transport');
45
45
*
46
- * const transport = Sentry.createSentryWinstonTransport(Transport);
46
+ * const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);
47
47
*
48
48
* const logger = winston.createLogger({
49
- * transports: [transport ],
49
+ * transports: [new SentryWinstonTransport() ],
50
50
* });
51
51
* ```
52
52
*/
You can’t perform that action at this time.
0 commit comments