#151 -- Logging panel fails on invalid string representations

Fixes issue #151. I haven't tested this in a real-life situation, but have attached unit tests which should cover this.