Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 400 Bytes

File metadata and controls

17 lines (13 loc) · 400 Bytes

Logs

To verify that Sentry catches your logs, add some log statements to your application:

Sentry.logger.info("User example action completed");

Sentry.logger.warn("Slow operation detected", {
  operation: "data_fetch",
  duration: 3500,
});

Sentry.logger.error("Validation failed", {
  field: "email",
  reason: "Invalid email",
});