add option to truncate device log output
Merge pull request #70 from jlongster/log-message-threshold

print out a maximum of 1000 chars when logging device messages