added LogMessage pattern match, as well as comment for non-exhaustive match.