kraklin/elm-debug-parser/1.0.0

NOTE: the latest version is 2.0.0

DebugParser

type alias ParsedLog =
{ tag : String
, value : ElmValue
}

Alias to represent parsed log.

Tag is part of the log message before the first colon.

parse : String -> Result String ParsedLog

Try to parse Debug.log message.

parseWithOptionalTag : String -> Result String ParsedLog

Try to parse Debug.log message including the tag. If it is not parsable, try to parse it without the tag.

This one is safer, but it might be slow due to the fact that it is trying two approaches. It should be used with caution.