Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type NuxeoLog = [NuxeoLogEntry]
- data NuxeoLogType
- data NuxeoLogEntry = NuxeoLogEntry {}
- parseNuxeoLog :: FilePath -> IO NuxeoLog
Documentation
type NuxeoLog = [NuxeoLogEntry] Source #
data NuxeoLogType Source #
Instances
Eq NuxeoLogType Source # | |
Defined in Nuxeo.Log (==) :: NuxeoLogType -> NuxeoLogType -> Bool # (/=) :: NuxeoLogType -> NuxeoLogType -> Bool # | |
Read NuxeoLogType Source # | |
Defined in Nuxeo.Log readsPrec :: Int -> ReadS NuxeoLogType # readList :: ReadS [NuxeoLogType] # | |
Show NuxeoLogType Source # | |
Defined in Nuxeo.Log showsPrec :: Int -> NuxeoLogType -> ShowS # show :: NuxeoLogType -> String # showList :: [NuxeoLogType] -> ShowS # |
data NuxeoLogEntry Source #
Instances
Show NuxeoLogEntry Source # | |
Defined in Nuxeo.Log showsPrec :: Int -> NuxeoLogEntry -> ShowS # show :: NuxeoLogEntry -> String # showList :: [NuxeoLogEntry] -> ShowS # |
parseNuxeoLog :: FilePath -> IO NuxeoLog Source #
Parse Nuxeo server.log
parseNuxeoLog "./server.log" >>= return . filter (l -> nuxeoLogEntryType l == Error) >>= mapM_ (t -> putStrLn $ (show $ nuxeoLogEntryType t) <> " " <> (Text.unpack $ nuxeoLogEntryAction t) <> " " <> (Text.unpack $ nuxeoLogEntryLog t) )