Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module for logging (crash) reports to Sentry
Synopsis
- getCrashLogger :: String -> IO SentryService
- logCrashMessage :: String -> SentryService -> String -> IO ()
Documentation
getCrashLogger :: String -> IO SentryService Source #
Returns a Maybe SentryService which can be used to send error information to Sentry. Return value is Nothing is the environment variable SENTRY_DSN is not set.
logCrashMessage :: String -> SentryService -> String -> IO () Source #
Send a crash message to Sentry, used in cases when no exception is available, Which is the case for Scotty errors. Function does nothing when Sentry service is Nothing.