Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
import { LogSeverityLevel } from '@sentry/core';
|
|
/**
|
|
* Options for the Sentry Winston transport.
|
|
*/
|
|
interface WinstonTransportOptions {
|
|
/**
|
|
* Use this option to filter which levels should be captured. By default, all levels are captured.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport, {
|
|
* // Only capture error and warn logs
|
|
* levels: ['error', 'warn'],
|
|
* });
|
|
* ```
|
|
*/
|
|
levels?: Array<LogSeverityLevel>;
|
|
}
|
|
/**
|
|
* Creates a new Sentry Winston transport that fowards logs to Sentry. Requires the `enableLogs` option to be enabled.
|
|
*
|
|
* Supports Winston 3.x.x.
|
|
*
|
|
* @param TransportClass - The Winston transport class to extend.
|
|
* @returns The extended transport class.
|
|
*
|
|
* @experimental This method will experience breaking changes. This is not yet part of
|
|
* the stable Sentry SDK API and can be changed or removed without warning.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* const winston = require('winston');
|
|
* const Transport = require('winston-transport');
|
|
*
|
|
* const SentryWinstonTransport = Sentry.createSentryWinstonTransport(Transport);
|
|
*
|
|
* const logger = winston.createLogger({
|
|
* transports: [new SentryWinstonTransport()],
|
|
* });
|
|
* ```
|
|
*/
|
|
export declare function createSentryWinstonTransport<TransportStreamInstance extends object>(TransportClass: new (options?: any) => TransportStreamInstance, sentryWinstonOptions?: WinstonTransportOptions): typeof TransportClass;
|
|
export {};
|
|
//# sourceMappingURL=winston.d.ts.map
|