added getTreeItem() method to LogMessage. Fixes #367