Adds getSubLogMessages() method to LogMessage. Fixes #367