revised logging routine
correct duplicate log entries
Merge pull request #79 from jvonau/jv-logging2