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

Safe HaskellNone

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 -> SentrySettingsSource

Transforms a service DSN into a settings. Format is:

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

endpointURL :: SentrySettings -> Maybe StringSource

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 -> String -> SentryLevel -> String -> SentryRecordSource

Initialize a record with all required fields filled in.