module System.Log.Raven.Transport.Debug
( dumpRecord, briefRecord, catchRecord
) where
import Control.Concurrent.MVar (MVar, putMVar)
import System.Log.Raven.Types
dumpRecord :: SentrySettings -> SentryRecord -> IO ()
dumpRecord _ rec = print rec
briefRecord :: SentrySettings -> SentryRecord -> IO ()
briefRecord _ rec = putStrLn $ concat [ show $ srTimestamp rec, " "
, show $ srLevel rec, " "
, srLogger rec, ": "
, srMessage rec
]
catchRecord :: MVar SentryRecord -> SentrySettings -> SentryRecord -> IO ()
catchRecord var _ rec = putMVar var rec