raven-haskell-0.1.4.0: Haskell client for Sentry logging service.

Safe HaskellNone
LanguageHaskell98

System.Log.Raven.Types

Description

Internal representation of event record and related facilities. Keep this under a pillow when writing custom wrappers.

Synopsis

Documentation

fromDSN :: String -> SentrySettings Source #

Transforms a service DSN into a settings. Format is:

{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}{PATH}/{PROJECT_ID}

endpointURL :: SentrySettings -> Maybe String Source #

Assemble http endpoint URL from settings.

data SentryService Source #

Misc settings packaged for easier operations.

data SentryLevel Source #

Sentry log levels. Custom levels should be configured in Sentry or sending messages will fail.

newRecord :: String -> String -> UTCTime -> SentryLevel -> String -> SentryRecord Source #

Initialize a record with all required fields filled in.