nuxeo-0.3.0

Safe HaskellNone
LanguageHaskell2010

Nuxeo.Log

Synopsis

Documentation

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