Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- parseNuxeoLog :: FilePath -> IO NuxeoLog
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) )