Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
Facilities to create a log database
- data Record = Record {
- service :: String
- exerciseid :: String
- source :: String
- script :: String
- requestinfo :: String
- dataformat :: String
- encoding :: String
- userid :: String
- sessionid :: String
- taskid :: String
- time :: Time
- responsetime :: Diff
- ipaddress :: String
- binary :: String
- version :: String
- errormsg :: String
- serviceinfo :: String
- ruleid :: String
- input :: String
- output :: String
- addRequest :: Request -> Record -> Record
- addState :: State a -> Record -> Record
- data LogRef
- newLogRef :: IO LogRef
- noLogRef :: LogRef
- changeLog :: LogRef -> (Record -> Record) -> IO ()
- logEnabled :: Bool
- logRecord :: Schema -> LogRef -> IO ()
- printLog :: LogRef -> IO ()
Documentation
The Record datatype is based on the Ideas Request Logging Schema version 2.
Record | |
|
addRequest :: Request -> Record -> Record Source
Add record information from the Request datatype
addState :: State a -> Record -> Record Source
Add record information from the state (userid, sessionid, taskid)
logEnabled :: Bool Source