Karya, built on 2018-05-31T02:46:59 (patch 0a1a35479c514820d77330ae8a978975ba22a47a)

Safe HaskellNone

LogView.Process

Contents

Synopsis

state

data State Source #

Constructors

State 

Fields

Instances
Show State # 
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
Eq StyledText # 
Instance details

Defined in LogView.Process

Show StyledText # 
Instance details

Defined in LogView.Process