Sentry.logger.error('Failed to process payment', { orderId: 'order_123', errorCode: 'PAYMENT_FAILED', amount: 99.99}); Copy
Sentry.logger.error('Failed to process payment', { orderId: 'order_123', errorCode: 'PAYMENT_FAILED', amount: 99.99});
Sentry.logger.error('Payment processing failed for order %s: %s', ['order_123', 'insufficient funds'], { amount: 99.99 }); Copy
Sentry.logger.error('Payment processing failed for order %s: %s', ['order_123', 'insufficient funds'], { amount: 99.99 });
Example
Example: With template strings