Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

LogView.Process

Synopsis

state

data State Source #

Constructors

State 

Fields

Instances

Instances details
Show State Source # 
Instance details

Defined in LogView.Process

Methods

showsPrec :: Int -> State -> ShowS #

show :: State -> String #

showList :: [State] -> ShowS #

compile_filter :: Text -> Filter Source #

Compile a simple filter language. A log msg matches if all of the words in the filter occur within its Log.msg_text, and none of the words prefixed by - occur.

process_msg

process_msg :: State -> Log.Msg -> (Maybe StyledText, State) Source #

Process an incoming log msg. If the msg isn't filtered out, returned a colorized version. Also possibly modify the app state for things like catch and timing.

type CatchPattern = (Text, Regex.Regex) Source #

Extract text from a log msg and put it in state_status, via catch_regexes.

data StyledText Source #

Constructors

StyledText 

Fields

Instances

Instances details
Show StyledText Source # 
Instance details

Defined in LogView.Process

Eq StyledText Source # 
Instance details

Defined in LogView.Process