syedsibtain
Thu Jul 20 2023
In Sentry we have two methods available, captureException()
and captureMessage()
.
captureException()
method is used to explicitly report errors and exceptions. We can pass anError
object tocaptureException()
to capture it as an event in Sentry.captureMessage()
method is used to capture a simple message for debugging purposes. Typically, messages captured withcaptureMessage()
are not emitted as events. We can additionally add severity level to this. Available levels are"fatal"
,"error"
,"warning"
,"log"
,"info"
, and"debug"
.