| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Nuxeo.Log
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 | |
| Read NuxeoLogType Source # | |
Defined in Nuxeo.Log Methods readsPrec :: Int -> ReadS NuxeoLogType # readList :: ReadS [NuxeoLogType] # | |
| Show NuxeoLogType Source # | |
Defined in Nuxeo.Log Methods showsPrec :: Int -> NuxeoLogType -> ShowS # show :: NuxeoLogType -> String # showList :: [NuxeoLogType] -> ShowS # | |
data NuxeoLogEntry Source #
Constructors
| NuxeoLogEntry | |
Instances
| Show NuxeoLogEntry Source # | |
Defined in Nuxeo.Log Methods 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)
)