Sysmon-0.1.2: Sybase 15 sysmon reports processor

Portabilitynon-portable
Stabilityexperimental
Maintainervirukav@gmail.com

Database.Sybase.Sysmon.LogParserPrim

Description

Log files parsing primitives

Synopsis

Documentation

matchLine :: String -> LogState [Field]Source

Get fields after discarding the prefix

matchField :: Read a => String -> Int -> LogState aSource

Get field after discarding the prefix

optLine :: String -> String -> LogState [Field]Source

Get fields if the first substring matches otherwise return empty

optString :: String -> String -> Int -> Int -> String -> LogState FieldSource

Get string field if the first substring matches otherwise return a default value

optField :: Read a => String -> String -> Int -> a -> LogState aSource

Get field if the first substring matches otherwise return a default value

string :: Int -> Int -> [Field] -> FieldSource

Concatenate fields to the string value

field :: Read a => Int -> [Field] -> aSource

Parse string to the field value

look :: String -> String -> LogState BoolSource

Look ahead for the first substring until the second substring

lookAhead :: (String -> Bool) -> (String -> Bool) -> LogState BoolSource

Test the first predicate until the second predicate

whileJust :: Monad m => m (Maybe a) -> m [a]Source

Recursively collect values contained in the Just

goto :: [String] -> LogState [Field]Source

Discard the matching lines